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 3ec5f4e

Browse filesBrowse files
pillo79SuGlider
andauthored
HardwareSerial: fix begin() lock issue on error path (espressif#8182)
* HardwareSerial: fix begin() lock issue on error path If the user supplied a wrong UART number, the begin() method would return without releasing the lock. Add missing unlock call. * removing unsed Case test --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
1 parent a2c8920 commit 3ec5f4e
Copy full SHA for 3ec5f4e

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+0
-3
lines changed

‎cores/esp32/HardwareSerial.cpp

Copy file name to clipboardExpand all lines: cores/esp32/HardwareSerial.cpp
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,6 @@ void HardwareSerial::begin(unsigned long baud, uint32_t config, int8_t rxPin, in
365365
}
366366
break;
367367
#endif
368-
default:
369-
log_e("Bad UART Number");
370-
return;
371368
}
372369
}
373370

0 commit comments

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