mirror of
https://github.com/anklimov/lighthub
synced 2025-12-07 20:29:50 +03:00
Critical patch - turning heaters off and send alarm after 200 unsuccesfull attempts of retrieving temperature
This commit is contained in:
2
item.cpp
2
item.cpp
@@ -815,7 +815,7 @@ if (node.getResponseBuffer(0) & 8) //Active fault
|
||||
{
|
||||
result = node.readHoldingRegisters(2111-1, 1);
|
||||
if (result == node.ku8MBSuccess) aJson.addNumberToObject(out,"flt", (int) node.getResponseBuffer(0));
|
||||
}
|
||||
} else aJson.addNumberToObject(out,"flt", 0);
|
||||
|
||||
delay(50);
|
||||
result = node.readHoldingRegisters(20-1, 4);
|
||||
|
||||
Reference in New Issue
Block a user