From eb31e2066225574d32a92a4e3e2ad37fb6a28131 Mon Sep 17 00:00:00 2001 From: Roland Praml Date: Sat, 25 May 2024 20:50:30 +0200 Subject: [PATCH] FIX: Allow use of UART0 with enabled USB_CDC_CONSOLE --- tasmota/tasmota_support/support.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasmota/tasmota_support/support.ino b/tasmota/tasmota_support/support.ino index 0552a30d17a1..6bb35b3d3014 100755 --- a/tasmota/tasmota_support/support.ino +++ b/tasmota/tasmota_support/support.ino @@ -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