diff --git a/wled00/FX_fcn.cpp b/wled00/FX_fcn.cpp index f83aed11..f2a474a4 100644 --- a/wled00/FX_fcn.cpp +++ b/wled00/FX_fcn.cpp @@ -1691,7 +1691,7 @@ void WS2812FX::waitForIt() { unsigned long maxWait = 2*getFrameTime() + 100; // TODO: this needs a proper fix for timeout! see #4779 while (isServicing() && (millis() - waitStart < maxWait)) delay(1); // safe even when millis() rolls over #ifdef WLED_DEBUG - if (millis() >= maxWait) DEBUG_PRINTLN(F("Waited for strip to finish servicing.")); + if (millis()-waitStart >= maxWait) DEBUG_PRINTLN(F("Waited for strip to finish servicing.")); #endif };