From 3170fa220874524c8807f0f36a3a36f9e86cc20b Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Thu, 27 Jan 2022 21:00:43 +0100 Subject: [PATCH] Playlist bugfix. --- wled00/json.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/json.cpp b/wled00/json.cpp index 06a526f6..27a989dc 100644 --- a/wled00/json.cpp +++ b/wled00/json.cpp @@ -176,6 +176,7 @@ void deserializeSegment(JsonObject elem, byte it, byte presetId) byte fx = seg.mode; byte fxPrev = fx; if (getVal(elem["fx"], &fx, 1, strip.getModeCount())) { //load effect ('r' random, '~' inc/dec, 1-255 exact value) + if (!presetId && currentPlaylist>=0) unloadPlaylist(); strip.setMode(id, fx); if (!presetId && seg.mode != fxPrev) effectChanged = true; //send UDP } @@ -344,7 +345,6 @@ bool deserializeState(JsonObject root, byte callMode, byte presetId) } } setValuesFromMainSeg(); //to make transition work on main segment - if (effectChanged) unloadPlaylist(); //if any of the effect parameter changed unload playlist #ifndef WLED_DISABLE_CRONIXIE if (root["nx"].is()) {