Skip to content

Commit 3ec5f4e

Browse files
pillo79SuGlider
andauthored
HardwareSerial: fix begin() lock issue on error path (#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 <[email protected]>
1 parent a2c8920 commit 3ec5f4e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Diff for: cores/esp32/HardwareSerial.cpp

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