Flush UART RX queue too (#3009)

This commit is contained in:
Roman Savrulin 2019-08-20 16:48:52 +03:00 committed by Me No Dev
parent cd5257ad78
commit 03066e42ef

View File

@ -343,6 +343,8 @@ void uartFlush(uart_t* uart)
READ_PERI_REG(UART_FIFO_REG(uart->num));
}
xQueueReset(uart->queue);
UART_MUTEX_UNLOCK();
}