Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 44ca2ee

Browse filesBrowse files
bertmelisme-no-dev
authored andcommitted
Fix uart TX flushing (espressif#2029)
wait for FSM to return idle
1 parent af79e18 commit 44ca2ee
Copy full SHA for 44ca2ee

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎cores/esp32/esp32-hal-uart.c

Copy file name to clipboardExpand all lines: cores/esp32/esp32-hal-uart.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ void uartFlush(uart_t* uart)
333333
}
334334

335335
UART_MUTEX_LOCK();
336-
while(uart->dev->status.txfifo_cnt);
336+
while(uart->dev->status.txfifo_cnt || uart->dev->status.st_utx_out);
337337

338338
//Due to hardware issue, we can not use fifo_rst to reset uart fifo.
339339
//See description about UART_TXFIFO_RST and UART_RXFIFO_RST in <<esp32_technical_reference_manual>> v2.6 or later.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.