mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2026-01-06 04:44:50 +01:00
Fixed issue that fetching stopped when inverter was deleted
This happend when due to special timing the last inverter was deleted. In that case interverPos was never changed and the fetching process stucked
This commit is contained in:
@@ -64,10 +64,9 @@ 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();
|
||||
|
||||
Reference in New Issue
Block a user