From f3dcbdcea97b337de5abc1f6d80c2894051aac1c Mon Sep 17 00:00:00 2001 From: Roland Praml Date: Sat, 22 Jun 2024 13:17:05 +0100 Subject: [PATCH] FIX: Allow use of UART0 with enabled USB_CDC_CONSOLE (#21496) Co-authored-by: Roland Praml --- 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 57f207c67..fb945953a 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