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:
Thomas Basler 2022-11-14 20:00:16 +01:00
parent 2937809def
commit 6229e4b5a8

View File

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