Fixed presets not triggering interface update

pull/2559/head
cschwinne 2022-02-23 19:42:34 +01:00
rodzic ed90b638a9
commit c03d4f115f
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -226,8 +226,10 @@ void deserializeSegment(JsonObject elem, byte it, byte presetId)
} else if (!elem["frz"] && iarr.isNull()) { //return to regular effect
seg.setOption(SEG_OPTION_FREEZE, false);
}
//send UDP if not in preset and something changed that is not just selection
if (!presetId && (seg.differs(prev) & 0x7F)) stateChanged = true;
// send UDP if not in preset and something changed that is not just selection
//if (!presetId && (seg.differs(prev) & 0x7F)) stateChanged = true;
// send UDP if something changed that is not just selection
if (seg.differs(prev) & 0x7F) stateChanged = true;
return;
}