Removed obsolete code & comments
This commit is contained in:
parent
f9aa487d5f
commit
cc1e8df92b
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user