mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-10 23:46:37 +02:00
0.8.14
* fixed decimal points for temperature (WebUI) PR #1254 * fixed inverter statemachine available state PR #1252
This commit is contained in:
parent
394df577b7
commit
90ac13dbcd
3 changed files with 9 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue