Bugfix for edge case of FX=~ within playlist.

This commit is contained in:
Blaz Kristan 2021-08-23 21:51:36 +02:00
parent 55ef547a85
commit be7e2bed6f
2 changed files with 2 additions and 2 deletions

View File

@ -736,7 +736,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);

View File

@ -8,7 +8,7 @@
*/
// version code in format yymmddb (b = daily build)
#define VERSION 2108221
#define VERSION 2108231
//uncomment this if you have a "my_config.h" file you'd like to use
//#define WLED_USE_MY_CONFIG