diff --git a/wled00/wled.cpp b/wled00/wled.cpp index 69e58dfea..54c723c80 100644 --- a/wled00/wled.cpp +++ b/wled00/wled.cpp @@ -389,7 +389,9 @@ void WLED::setup() sprintf(mqttClientID + 5, "%*s", 6, escapedMac.c_str() + 6); } +#ifdef WLED_ENABLE_ADALIGHT if (Serial.available() > 0 && Serial.peek() == 'I') handleImprovPacket(); +#endif strip.service(); @@ -409,7 +411,10 @@ void WLED::setup() initDMX(); #endif +#ifdef WLED_ENABLE_ADALIGHT if (Serial.available() > 0 && Serial.peek() == 'I') handleImprovPacket(); +#endif + // HTTP server page init initServer();