From c03d4f115f9013773b90cf6462e438edd82ed0f4 Mon Sep 17 00:00:00 2001 From: cschwinne Date: Wed, 23 Feb 2022 19:42:34 +0100 Subject: [PATCH] Fixed presets not triggering interface update --- wled00/json.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wled00/json.cpp b/wled00/json.cpp index a6043222..f81c3531 100644 --- a/wled00/json.cpp +++ b/wled00/json.cpp @@ -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; }