From 96700fe3d1fb48bf6a1e26c3b12d19b7f1bb9c27 Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Fri, 27 Oct 2023 17:49:48 +0200 Subject: [PATCH] Fix for udp sync (#3487) --- wled00/udp.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wled00/udp.cpp b/wled00/udp.cpp index acd2bd06..585ab8b0 100644 --- a/wled00/udp.cpp +++ b/wled00/udp.cpp @@ -382,8 +382,9 @@ void handleNotifications() } if (version > 11) { // when applying synced options ignore selected as it may be used as indicator of which segments to sync - // freeze, reset & transitional should never be synced - selseg.options = (selseg.options & 0x0071U) | (udpIn[28+ofs]<<8) | (udpIn[9 +ofs] & 0x8E); // ignore selected, freeze, reset & transitional + // freeze, reset should never be synced + // LSB to MSB: select, reverse, on, mirror, freeze, reset, reverse_y, mirror_y, transpose, map1d2d (3), ssim (2), set (2) + selseg.options = (selseg.options & 0b0000000000110001U) | (udpIn[28+ofs]<<8) | (udpIn[9 +ofs] & 0b11001110U); // ignore selected, freeze, reset if (applyEffects) { selseg.custom1 = udpIn[29+ofs]; selseg.custom2 = udpIn[30+ofs];