From 2d1ebbb7cbe452afc3715a8b9e8d7f41ff819cc8 Mon Sep 17 00:00:00 2001 From: mxklb Date: Tue, 20 Dec 2022 00:47:11 +0100 Subject: [PATCH] Ignore E1.31 data when priority doesn't match #768 --- wled00/e131.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wled00/e131.cpp b/wled00/e131.cpp index 0688128e..9852a2ae 100644 --- a/wled00/e131.cpp +++ b/wled00/e131.cpp @@ -90,8 +90,11 @@ void handleE131Packet(e131_packet_t* p, IPAddress clientIP, byte protocol){ } #endif - // ignore packages with priority smaller configured port priority - if ( (prio != 0 && e131Priority != 0) && prio < e131Priority ) return; + // ignore packages by priority + if (prio != 0) + if (e131Priority != 0) + if (prio != e131Priority) + return; // only listen for universes we're handling & allocated memory if (uni < e131Universe || uni >= (e131Universe + E131_MAX_UNIVERSE_COUNT)) return;