From 3be5f630e18d4c01506e2c902abc79ecc6c8c749 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sat, 4 May 2024 15:14:51 +0200 Subject: [PATCH] fix s2cdc serial console (#21344) --- tasmota/tasmota.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/tasmota.ino b/tasmota/tasmota.ino index 58ce6d068..62c8dc2a9 100644 --- a/tasmota/tasmota.ino +++ b/tasmota/tasmota.ino @@ -473,9 +473,9 @@ void setup(void) { #ifdef USE_USB_CDC_CONSOLE bool is_connected_to_USB = false; -#if SOC_USB_SERIAL_JTAG_SUPPORTED // Not S2 TasConsole.setRxBufferSize(INPUT_BUFFER_SIZE); - TasConsole.begin(115200); // always start CDC to test plugged cable + TasConsole.begin(115200); // always start CDC to test plugged cable +#if SOC_USB_SERIAL_JTAG_SUPPORTED // Not S2 for (uint32_t i = 0; i < 5; i++) { // wait up to 250 ms - maybe a shorter time is enough is_connected_to_USB = HWCDCSerial.isPlugged(); if (is_connected_to_USB) { break; }