From 77c0ba990d356f994f765d5732754900595fc791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Kristan?= Date: Tue, 24 Aug 2021 06:10:59 +0200 Subject: [PATCH] Bugfix for calling FX=~ from within playlist preset. --- wled00/set.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/set.cpp b/wled00/set.cpp index 080fea9c..e34bf06b 100644 --- a/wled00/set.cpp +++ b/wled00/set.cpp @@ -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);