Fix segment runtime not reset on FX change via HTTP API
This commit is contained in:
parent
54f4658dae
commit
83c6f72eb0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user