mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2026-01-03 19:33:47 +01:00
Fix isReachable and isProducing based on PollEnabled
This commit is contained in:
@@ -67,12 +67,12 @@ bool InverterAbstract::isProducing()
|
||||
}
|
||||
}
|
||||
|
||||
return totalAc > 0;
|
||||
return _enablePolling && totalAc > 0;
|
||||
}
|
||||
|
||||
bool InverterAbstract::isReachable()
|
||||
{
|
||||
return Statistics()->getRxFailureCount() <= MAX_ONLINE_FAILURE_COUNT;
|
||||
return _enablePolling && Statistics()->getRxFailureCount() <= MAX_ONLINE_FAILURE_COUNT;
|
||||
}
|
||||
|
||||
void InverterAbstract::setEnablePolling(bool enabled)
|
||||
|
||||
Reference in New Issue
Block a user