Skip to content

Commit f3dcbdc

Browse files
rPramlRoland Praml
andauthored
FIX: Allow use of UART0 with enabled USB_CDC_CONSOLE (#21496)
Co-authored-by: Roland Praml <roland@DESKTOP-MKLGCJR>
1 parent 904fb01 commit f3dcbdc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tasmota/tasmota_support/support.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2138,7 +2138,9 @@ void ClaimSerial(void) {
21382138
#ifdef ESP32
21392139
#if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32C6 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
21402140
#ifdef USE_USB_CDC_CONSOLE
2141-
return; // USB console does not use serial
2141+
if (!tasconsole_serial) {
2142+
return; // USB console does not use serial
2143+
}
21422144
#endif // USE_USB_CDC_CONSOLE
21432145
#endif // ESP32C3/C6, S2 or S3
21442146
#endif // ESP32

0 commit comments

Comments
 (0)