improve Serial repeated begin/baud change

This commit is contained in:
me-no-dev
2017-08-02 00:32:42 +03:00
parent 4495659ac5
commit a1bef8b5c3
2 changed files with 5 additions and 0 deletions

View File

@ -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);
}