Fix segment runtime not reset on FX change via HTTP API

This commit is contained in:
cschwinne 2021-09-05 01:28:00 +02:00
parent 54f4658dae
commit 83c6f72eb0

View File

@ -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) {