From 54b7dfe04be8f285fb710f32d9b7bbfc40080d10 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Tue, 18 Nov 2025 23:05:03 +0100 Subject: [PATCH] Fix debug message for servicing wait forgot to adjust the debug condition in my previous commit. NB: the condition only shows a debug message when the max wait time was exceeded, which can only happen when line 1692 has waited for the maximum allowed time. ->Is this intended? --- wled00/FX_fcn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 };