Fixed scheduler issue

When the RF method took very long inverters where skipped
This commit is contained in:
Thomas Basler 2022-09-25 17:28:50 +02:00
parent 68fc0c2547
commit b8f03eddfd

View File

@ -42,10 +42,10 @@ void HoymilesClass::loop()
Serial.println(F("Request device info"));
iv->sendDevInfoRequest(_radio.get());
}
}
if (++inverterPos >= getNumInverters()) {
inverterPos = 0;
if (++inverterPos >= getNumInverters()) {
inverterPos = 0;
}
}
_lastPoll = millis();