Flush UART RX queue too (#3009)
This commit is contained in:
parent
cd5257ad78
commit
03066e42ef
@ -343,6 +343,8 @@ void uartFlush(uart_t* uart)
|
||||
READ_PERI_REG(UART_FIFO_REG(uart->num));
|
||||
}
|
||||
|
||||
xQueueReset(uart->queue);
|
||||
|
||||
UART_MUTEX_UNLOCK();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user