diff --git a/cores/esp32/esp32-hal-uart.c b/cores/esp32/esp32-hal-uart.c index bc4a676b427..37298351125 100644 --- a/cores/esp32/esp32-hal-uart.c +++ b/cores/esp32/esp32-hal-uart.c @@ -360,7 +360,7 @@ void uartWriteBuf(uart_t* uart, const uint8_t * data, size_t len) void uartFlush(uart_t* uart) { - uartFlushTxOnly(uart,false); + uartFlushTxOnly(uart,true); } void uartFlushTxOnly(uart_t* uart, bool txOnly)