Fixed scheduler issue
When the RF method took very long inverters where skipped
This commit is contained in:
parent
68fc0c2547
commit
b8f03eddfd
@ -42,10 +42,10 @@ void HoymilesClass::loop()
|
|||||||
Serial.println(F("Request device info"));
|
Serial.println(F("Request device info"));
|
||||||
iv->sendDevInfoRequest(_radio.get());
|
iv->sendDevInfoRequest(_radio.get());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (++inverterPos >= getNumInverters()) {
|
if (++inverterPos >= getNumInverters()) {
|
||||||
inverterPos = 0;
|
inverterPos = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_lastPoll = millis();
|
_lastPoll = millis();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user