Skip to content

Commit 0ca4f75

Browse files
committed
remove default argument
1 parent e7d5f51 commit 0ca4f75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cores/arduino/HardwareSerial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ void HardwareSerial::enableHalfDuplexRx(void)
647647
if (isHalfDuplex()) {
648648
// In half-duplex mode we have to wait for all TX characters to
649649
// be transmitted before we can receive data.
650-
flush(0);
650+
flush();
651651
if (!_rx_enabled) {
652652
_rx_enabled = true;
653653
uart_enable_rx(&_serial);

cores/arduino/HardwareSerial.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class HardwareSerial : public Stream {
126126
virtual int read(void);
127127
int availableForWrite(void);
128128
virtual void flush();
129-
void flush(uint32_t timeout = 0);
129+
void flush(uint32_t timeout);
130130
virtual size_t write(uint8_t);
131131
inline size_t write(unsigned long n)
132132
{

0 commit comments

Comments
 (0)