From 4873031c3703caa7db5d7098b1acaa0b902af3b2 Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Sat, 2 Dec 2023 00:39:43 +0100 Subject: [PATCH] Bugfix #3561 --- wled00/set.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/set.cpp b/wled00/set.cpp index db1b6085..7f3e3f98 100644 --- a/wled00/set.cpp +++ b/wled00/set.cpp @@ -117,7 +117,6 @@ void handleSettingsSet(AsyncWebServerRequest *request, byte subPage) pins[i] = (request->arg(lp).length() > 0) ? request->arg(lp).toInt() : 255; } type = request->arg(lt).toInt(); - type |= request->hasArg(rf) << 7; // off refresh override skip = request->arg(sl).toInt(); colorOrder = request->arg(co).toInt(); start = (request->hasArg(ls)) ? request->arg(ls).toInt() : t; @@ -150,6 +149,7 @@ void handleSettingsSet(AsyncWebServerRequest *request, byte subPage) freqHz = 0; } channelSwap = (type == TYPE_SK6812_RGBW || type == TYPE_TM1814) ? request->arg(wo).toInt() : 0; + type |= request->hasArg(rf) << 7; // off refresh override // actual finalization is done in WLED::loop() (removing old busses and adding new) // this may happen even before this loop is finished so we do "doInitBusses" after the loop if (busConfigs[s] != nullptr) delete busConfigs[s];