fix: fix uart write data incomplete

This commit is contained in:
Zhao Ke Ke
2020-01-08 18:01:22 +08:00
parent 08d469ab44
commit ae51c20e28

View File

@ -587,7 +587,11 @@ static void uart_rx_intr_handler_default(void *param)
}
if (p_uart->tx_len_tot == 0) {
en_tx_flg = false;
if (tx_fifo_rem == 0) {
en_tx_flg = true;
} else{
en_tx_flg = false;
}
xSemaphoreGiveFromISR(p_uart->tx_done_sem, &task_woken);
if (task_woken == pdTRUE) {
portYIELD_FROM_ISR();