Skip to content

Commit 0408552

Browse files
committed
CI caught warnings as error that local builds didn't show - good thing.
1 parent 0c09961 commit 0408552

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/SoftwareSerial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void UARTBase::setTxGPIOPinMode() {
8787

8888
void UARTBase::begin(uint32_t baud, Config config,
8989
int8_t rxPin, int8_t txPin,
90-
bool invert, int bufCapacity, int isrBufCapacity) {
90+
bool invert) {
9191
if (-1 != rxPin) m_rxPin = rxPin;
9292
if (-1 != txPin) m_txPin = txPin;
9393
m_oneWire = (m_rxPin == m_txPin);

src/SoftwareSerial.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,7 @@ class UARTBase : public Stream {
180180
/// bit receive buffer, a suggested size is bufCapacity times the sum of
181181
/// start, data, parity and stop bit count.
182182
void begin(uint32_t baud, Config config,
183-
int8_t rxPin, int8_t txPin, bool invert,
184-
int bufCapacity = 64, int isrBufCapacity = 0);
183+
int8_t rxPin, int8_t txPin, bool invert);
185184

186185
uint32_t baudRate();
187186
/// Transmit control pin.
@@ -400,7 +399,7 @@ template< class GpioCapabilities > class BasicUART : public UARTBase {
400399
void begin(uint32_t baud, Config config,
401400
int8_t rxPin, int8_t txPin, bool invert,
402401
int bufCapacity = 64, int isrBufCapacity = 0) {
403-
UARTBase::begin(baud, config, rxPin, txPin, invert, bufCapacity, isrBufCapacity);
402+
UARTBase::begin(baud, config, rxPin, txPin, invert);
404403
if (GpioCapabilities::isValidInputPin(rxPin)) {
405404
beginRx(GpioCapabilities:: hasPullUp(rxPin), bufCapacity, isrBufCapacity);
406405
}

0 commit comments

Comments
 (0)