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:
parent
2937809def
commit
6229e4b5a8
@ -64,10 +64,9 @@ 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