fix bool command for hp input #600

This commit is contained in:
MichaelDvP
2022-10-01 11:21:15 +02:00
parent d09c0436e0
commit e450a0e096

View File

@@ -2344,7 +2344,7 @@ bool Boiler::set_HpInLogic(const char * value, const int8_t id) {
} }
bool v; bool v;
if (Helpers::value2bool(value, v)) { if (Helpers::value2bool(value, v)) {
write_command(0x486, id == 4 ? 42 : id, v ? 1 : 0, 0x486); write_command(0x486, id == 4 ? 42 : id - 1, v ? 1 : 0, 0x486);
return true; return true;
} }
if (strlen(value) == 11 && id != 4) { if (strlen(value) == 11 && id != 4) {