Skip to content

Commit 7be11ce

Browse files
committed
Overload instead of default arg for subclassing.
1 parent dccc005 commit 7be11ce

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

cores/esp8266/HardwareSerial.h

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,23 @@ class HardwareSerial: public Stream
7373

7474
void begin(unsigned long baud)
7575
{
76-
begin(baud, SERIAL_8N1, SERIAL_FULL, 1);
76+
begin(baud, SERIAL_8N1, SERIAL_FULL, 1, false);
7777
}
7878
void begin(unsigned long baud, SerialConfig config)
7979
{
80-
begin(baud, config, SERIAL_FULL, 1);
80+
begin(baud, config, SERIAL_FULL, 1, false);
8181
}
8282
void begin(unsigned long baud, SerialConfig config, SerialMode mode)
8383
{
84-
begin(baud, config, mode, 1);
84+
begin(baud, config, mode, 1, false);
8585
}
8686

87-
void begin(unsigned long baud, SerialConfig config, SerialMode mode, uint8_t tx_pin, bool invert=false);
87+
void begin(unsigned long baud, SerialConfig config, SerialMode mode, uint8_t tx_pin)
88+
{
89+
begin(baud, config, mode, tx_pin, false);
90+
}
91+
92+
void begin(unsigned long baud, SerialConfig config, SerialMode mode, uint8_t tx_pin, bool invert);
8893

8994
void end();
9095

0 commit comments

Comments
 (0)