Skip to content
Snippets Groups Projects
Commit 562f55e0 authored by Cyril Danilevski's avatar Cyril Danilevski :scooter:
Browse files

Clarify intended behaviour when skipping iteration on stale data

parent 8e1e6c4a
No related branches found
No related tags found
No related merge requests found
Pipeline #167583 passed
......@@ -260,6 +260,12 @@ void setChannelStateAndWait(const IPAddress *ipAddr, const uint16_t channel, con
delay(MPOD_UPDATE_LATENCY);
snmp.loop();
if (mpod.getChannel() != channel) {
// We have stale information, because MPOD swallowed UDP request.
// Skip this update check and go for next iteration, where data will be requested
// or request resent.
continue;
}
loopCount += 1;
ramping = (mpod.isRampingUp() || mpod.isRampingDown());
if (!ramping) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment