Bugfix for calling FX=~ from within playlist preset.

This commit is contained in:
Blaž Kristan 2021-08-24 06:10:59 +02:00
parent 1d4487b6cd
commit 77c0ba990d

View File

@ -728,7 +728,7 @@ bool handleSet(AsyncWebServerRequest *request, const String& req, bool apply)
} }
//set effect parameters //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, "SX=", &effectSpeed);
updateVal(&req, "IX=", &effectIntensity); updateVal(&req, "IX=", &effectIntensity);
updateVal(&req, "FP=", &effectPalette, 0, strip.getPaletteCount()-1); updateVal(&req, "FP=", &effectPalette, 0, strip.getPaletteCount()-1);