mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 11:16:34 +00:00
fix s2cdc serial console (#21344)
This commit is contained in:
parent
545cc27ca8
commit
3be5f630e1
@ -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; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user