fix short black-out when a playlist advances (WLEDMM specific)

* do not call strip.show(), just shedule a "show()" in the next main loop.
* experimental fix for inconsistent state when loading a preset (see upstream https://github.com/wled/WLED/issues/5200)
This commit is contained in:
Frank
2026-02-22 20:37:39 +01:00
parent ae3a796f8d
commit 2914daa3aa
2 changed files with 7 additions and 4 deletions

View File

@@ -253,7 +253,7 @@ void handlePresets()
unsigned long waitstart = millis();
while (strip.isServicing() && millis() - waitstart < FRAMETIME_FIXED) delay(1); // wait for effects to finish updating
strip.fill(BLACK); strip.show(); // experimental: set LEDs to black while new preset loads (instead of freezing effects)
strip.fill(BLACK); strip.trigger(); // experimental: set LEDs to black while new preset loads (shortly freezing effects, but starts clean. Still better than a short black-out.)
unsigned long start = millis();
while (strip.isUpdating() && millis() - start < FRAMETIME_FIXED) delay(1); // wait for strip to finish updating, accessing FS during sendout causes glitches // WLEDMM delay instead of yield