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 81b7c47

Browse filesBrowse files
authored
Serial::end hang (espressif#5047)
workaround for espressif#5043. There is a timing issue with HardwareSerial::end. I'm not sure what is hung, but it should be possible to see this in jtag, as it does cause a reboot if you let it. The delay needs to be before you detach the device!?
1 parent e6ba8c7 commit 81b7c47
Copy full SHA for 81b7c47

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎cores/esp32/HardwareSerial.cpp

Copy file name to clipboardExpand all lines: cores/esp32/HardwareSerial.cpp
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ void HardwareSerial::end()
117117
if(uartGetDebug() == _uart_nr) {
118118
uartSetDebug(0);
119119
}
120+
delay(10);
120121
log_v("pins %d %d",_tx_pin, _rx_pin);
121122
uartEnd(_uart, _tx_pin, _rx_pin);
122123
_uart = 0;

0 commit comments

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