We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7d5f51 commit 0ca4f75Copy full SHA for 0ca4f75
cores/arduino/HardwareSerial.cpp
@@ -647,7 +647,7 @@ void HardwareSerial::enableHalfDuplexRx(void)
647
if (isHalfDuplex()) {
648
// In half-duplex mode we have to wait for all TX characters to
649
// be transmitted before we can receive data.
650
- flush(0);
+ flush();
651
if (!_rx_enabled) {
652
_rx_enabled = true;
653
uart_enable_rx(&_serial);
cores/arduino/HardwareSerial.h
@@ -126,7 +126,7 @@ class HardwareSerial : public Stream {
126
virtual int read(void);
127
int availableForWrite(void);
128
virtual void flush();
129
- void flush(uint32_t timeout = 0);
+ void flush(uint32_t timeout);
130
virtual size_t write(uint8_t);
131
inline size_t write(unsigned long n)
132
{
0 commit comments