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