diff --git a/wled00/e131.cpp b/wled00/e131.cpp index 7f98c09d..181439ec 100644 --- a/wled00/e131.cpp +++ b/wled00/e131.cpp @@ -77,9 +77,8 @@ void handleE131Packet(e131_packet_t* p, IPAddress clientIP, byte protocol){ if (e131Priority != 0) { // track lastest e131 package priority .. if (p->priority >= lastPriority.get()) lastPriority.set(p->priority); - // skip packages < lastest priority or < e131 config priority - if (p->priority < lastPriority.get() || p->priority < e131Priority) return; - // Note: HTP for multiple senders with same priority is not implemented! + // skip packages < e131 config priority or < lastest priority + if (p->priority < e131Priority || p->priority < lastPriority.get()) return; } } else { //DDP realtimeIP = clientIP; diff --git a/wled00/src/dependencies/e131/ESPAsyncE131.h b/wled00/src/dependencies/e131/ESPAsyncE131.h index 5bc6128f..8949d3ab 100644 --- a/wled00/src/dependencies/e131/ESPAsyncE131.h +++ b/wled00/src/dependencies/e131/ESPAsyncE131.h @@ -247,9 +247,9 @@ class E131Priority { priority = prio; } - // Get priority (+ reset to default if older timeout) - uint8_t get(uint8_t defaultPrio=0) { - if (time(0) > setupTime + seconds) priority = defaultPrio; + // Get priority (+ reset & return 0 if older timeout) + uint8_t get() { + if (time(0) > setupTime + seconds) priority = 0; return priority; } };