From 83c6f72eb0929916d5e3e6ee862e3127032896e8 Mon Sep 17 00:00:00 2001 From: cschwinne Date: Sun, 5 Sep 2021 01:28:00 +0200 Subject: [PATCH] Fix segment runtime not reset on FX change via HTTP API --- wled00/set.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/set.cpp b/wled00/set.cpp index 5ab6c0d0..01f7a673 100644 --- a/wled00/set.cpp +++ b/wled00/set.cpp @@ -894,7 +894,7 @@ bool handleSet(AsyncWebServerRequest *request, const String& req, bool apply) WS2812FX::Segment& seg = strip.getSegment(i); if (!seg.isSelected()) continue; if (effectCurrent != prevEffect) { - seg.mode = effectCurrent; + strip.setMode(i, effectCurrent); effectChanged = true; } if (effectSpeed != prevSpeed) {