* fixed decimal points for temperature (WebUI) PR #1254
* fixed inverter statemachine available state PR #1252
This commit is contained in:
lumapu 2023-12-07 21:50:43 +01:00
parent 394df577b7
commit 90ac13dbcd
3 changed files with 9 additions and 1 deletions

View file

@ -391,6 +391,10 @@ class Inverter {
bool isAvailable() {
bool avail = false;
if((recordMeas.ts == 0) && (recordInfo.ts == 0) && (recordConfig.ts == 0) && (recordAlarm.ts == 0))
return false;
if((*timestamp - recordMeas.ts) < INVERTER_INACT_THRES_SEC)
avail = true;
if((*timestamp - recordInfo.ts) < INVERTER_INACT_THRES_SEC)