Skip to content

Commit

Permalink
Bugfix for calling FX=~ from within playlist preset.
Browse files Browse the repository at this point in the history
  • Loading branch information
blazoncek committed Aug 24, 2021
1 parent 1d4487b commit 77c0ba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wled00/set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ bool handleSet(AsyncWebServerRequest *request, const String& req, bool apply)
}

//set effect parameters
if (updateVal(&req, "FX=", &effectCurrent, 0, strip.getModeCount()-1)) unloadPlaylist();
if (updateVal(&req, "FX=", &effectCurrent, 0, strip.getModeCount()-1) && request != nullptr) unloadPlaylist(); //unload playlist if changing FX using web request
updateVal(&req, "SX=", &effectSpeed);
updateVal(&req, "IX=", &effectIntensity);
updateVal(&req, "FP=", &effectPalette, 0, strip.getPaletteCount()-1);
Expand Down

0 comments on commit 77c0ba9

Please sign in to comment.