8000 Flush UART RX queue too · flexibity-team/arduino-esp32@bac5534 · GitHub
[go: up one dir, main page]

Skip to content

Commit bac5534

Browse files
committed
Flush UART RX queue too
1 parent 3a4d769 commit bac5534

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/esp32/esp32-hal-uart.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ void uartFlush(uart_t* uart)
342342
READ_PERI_REG(UART_FIFO_REG(uart->num));
343343
}
344344

345+
xQueueReset(uart->queue);
346+
345347
UART_MUTEX_UNLOCK();
346348
}
347349

0 commit comments

Comments
 (0)
0