Enable E1.31 priority handling for WLED_ENABLE_DMX

This commit is contained in:
mxklb 2023-01-10 00:07:34 +01:00
parent 3a5a3a0d09
commit 18687b5bef

View File

@ -81,6 +81,9 @@ void handleE131Packet(e131_packet_t* p, IPAddress clientIP, byte protocol){
return; return;
} }
// when priority != 0: skip packages with priority != config priority
if ((e131Priority != 0 && prio != 0) && prio != e131Priority) return;
#ifdef WLED_ENABLE_DMX #ifdef WLED_ENABLE_DMX
// does not act on out-of-order packets yet // does not act on out-of-order packets yet
if (e131ProxyUniverse > 0 && uni == e131ProxyUniverse) { if (e131ProxyUniverse > 0 && uni == e131ProxyUniverse) {
@ -90,12 +93,6 @@ void handleE131Packet(e131_packet_t* p, IPAddress clientIP, byte protocol){
} }
#endif #endif
// ignore packages by priority
if (prio != 0)
if (e131Priority != 0)
if (prio != e131Priority)
return;
// only listen for universes we're handling & allocated memory // only listen for universes we're handling & allocated memory
if (uni < e131Universe || uni >= (e131Universe + E131_MAX_UNIVERSE_COUNT)) return; if (uni < e131Universe || uni >= (e131Universe + E131_MAX_UNIVERSE_COUNT)) return;