mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-22 09:37:00 +08:00
Merge branch 'bugfix/uart_cannot_write_completely' into 'master'
fix: fix uart write data incomplete See merge request sdk/ESP8266_RTOS_SDK!1276
This commit is contained in:
@ -590,7 +590,11 @@ static void uart_rx_intr_handler_default(void *param)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (p_uart->tx_len_tot == 0) {
|
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);
|
xSemaphoreGiveFromISR(p_uart->tx_done_sem, &task_woken);
|
||||||
if (task_woken == pdTRUE) {
|
if (task_woken == pdTRUE) {
|
||||||
portYIELD_FROM_ISR();
|
portYIELD_FROM_ISR();
|
||||||
|
Reference in New Issue
Block a user