Critical patch - turning heaters off and send alarm after 200 unsuccesfull attempts of retrieving temperature

This commit is contained in:
2017-11-28 23:25:59 +03:00
parent d1e0a96747
commit ef5137e34f
2 changed files with 22 additions and 9 deletions

View File

@@ -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);