Fix: Power not set to 0 when not reachable at EOD

If the inverter polling was disabled before it got unreachable the values where not set to zero
Fix: #1488
This commit is contained in:
Thomas Basler
2023-11-09 22:30:35 +01:00
parent 71d1b3b846
commit fa7641f715
2 changed files with 5 additions and 5 deletions

View File

@@ -55,9 +55,4 @@ bool RealTimeRunDataCommand::handleResponse(InverterAbstract* inverter, fragment
void RealTimeRunDataCommand::gotTimeout(InverterAbstract* inverter)
{
inverter->Statistics()->incrementRxFailureCount();
if (inverter->getZeroValuesIfUnreachable() && !inverter->isReachable()) {
Hoymiles.getMessageOutput()->println("Set runtime data to zero");
inverter->Statistics()->zeroRuntimeData();
}
}