From 542d6361f2db9ef6164306a100bbb4e292718198 Mon Sep 17 00:00:00 2001 From: cschwinne Date: Tue, 24 Aug 2021 23:59:09 +0200 Subject: [PATCH] Make packets with version < 9 group 1 --- wled00/udp.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wled00/udp.cpp b/wled00/udp.cpp index e380e9e2b..14eda6dfa 100644 --- a/wled00/udp.cpp +++ b/wled00/udp.cpp @@ -225,7 +225,10 @@ void handleNotifications() byte version = udpIn[11]; // if we are not part of any sync group ignore message - if (version > 8 && !(receiveGroups & udpIn[36])) return; + if (version < 9 || version > 199) { + // legacy senders are treated as if sending in sync group 1 only + if (!(receiveGroups & 0x01)) return; + } else if (!(receiveGroups & udpIn[36])) return; bool someSel = (receiveNotificationBrightness || receiveNotificationColor || receiveNotificationEffects); //apply colors from notification @@ -270,7 +273,7 @@ void handleNotifications() } //adjust system time, but only if sender is more accurate than self - if (version > 7) + if (version > 7 && version < 200) { Toki::Time tm; tm.sec = (udpIn[30] << 24) | (udpIn[31] << 16) | (udpIn[32] << 8) | (udpIn[33]);