FIX: Allow use of UART0 with enabled USB_CDC_CONSOLE (#21496)

Co-authored-by: Roland Praml <roland@DESKTOP-MKLGCJR>
This commit is contained in:
Roland Praml 2024-06-22 13:17:05 +01:00 committed by GitHub
parent 904fb01e75
commit f3dcbdcea9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2138,7 +2138,9 @@ void ClaimSerial(void) {
#ifdef ESP32
#if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32C6 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
#ifdef USE_USB_CDC_CONSOLE
return; // USB console does not use serial
if (!tasconsole_serial) {
return; // USB console does not use serial
}
#endif // USE_USB_CDC_CONSOLE
#endif // ESP32C3/C6, S2 or S3
#endif // ESP32