Removed obsolete code & comments

This commit is contained in:
mxklb 2023-01-28 14:29:21 +01:00
parent f9aa487d5f
commit cc1e8df92b
2 changed files with 5 additions and 6 deletions

View File

@ -77,9 +77,8 @@ void handleE131Packet(e131_packet_t* p, IPAddress clientIP, byte protocol){
if (e131Priority != 0) { if (e131Priority != 0) {
// track lastest e131 package priority .. // track lastest e131 package priority ..
if (p->priority >= lastPriority.get()) lastPriority.set(p->priority); if (p->priority >= lastPriority.get()) lastPriority.set(p->priority);
// skip packages < lastest priority or < e131 config priority // skip packages < e131 config priority or < lastest priority
if (p->priority < lastPriority.get() || p->priority < e131Priority) return; if (p->priority < e131Priority || p->priority < lastPriority.get()) return;
// Note: HTP for multiple senders with same priority is not implemented!
} }
} else { //DDP } else { //DDP
realtimeIP = clientIP; realtimeIP = clientIP;

View File

@ -247,9 +247,9 @@ class E131Priority {
priority = prio; priority = prio;
} }
// Get priority (+ reset to default if older timeout) // Get priority (+ reset & return 0 if older timeout)
uint8_t get(uint8_t defaultPrio=0) { uint8_t get() {
if (time(0) > setupTime + seconds) priority = defaultPrio; if (time(0) > setupTime + seconds) priority = 0;
return priority; return priority;
} }
}; };