small fix

Serial0 does not exist without ARDUINO_USB_CDC_ON_BOOT
This commit is contained in:
Frank
2023-04-15 23:37:54 +02:00
committed by GitHub
parent 0fd26cc783
commit 28c737df87

View File

@@ -357,7 +357,7 @@ void WLED::setup()
if (Serial) Serial.flush(); // WLEDMM
//Serial.setTimeout(350); // WLEDMM: don't change timeout, as it causes crashes later
// WLEDMM: redirect debug output to HWCDC
#if defined(WLED_DEBUG) || defined (SR_DEBUG)
#if ARDUINO_USB_CDC_ON_BOOT && (defined(WLED_DEBUG) || defined(SR_DEBUG))
Serial0.setDebugOutput(false);
Serial.setDebugOutput(true);
#endif