Skip to content

Commit 48d28fb

Browse files
authored
support tx only flush()
1 parent 995b9a0 commit 48d28fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/esp32/HardwareSerial.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ int HardwareSerial::read(void)
131131
return -1;
132132
}
133133

134-
void HardwareSerial::flush()
134+
void HardwareSerial::flush(bool txOnly)
135135
{
136-
uartFlush(_uart);
136+
uartFlush(_uart, txOnly);
137137
}
138138

139139
size_t HardwareSerial::write(uint8_t c)

0 commit comments

Comments
 (0)