mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-29 10:17:15 +02:00
improve Serial repeated begin/baud change
This commit is contained in:
@ -223,6 +223,8 @@ void uartEnd(uart_t* uart)
|
||||
|
||||
UART_MUTEX_LOCK();
|
||||
if(uart->queue != NULL) {
|
||||
uint8_t c;
|
||||
while(xQueueReceive(uart->queue, &c, 0));
|
||||
vQueueDelete(uart->queue);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user