From e450a0e09662ecc7206935f5658afc867408558c Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Sat, 1 Oct 2022 11:21:15 +0200 Subject: [PATCH] fix bool command for hp input #600 --- src/devices/boiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/boiler.cpp b/src/devices/boiler.cpp index d63260189..5f31f859b 100644 --- a/src/devices/boiler.cpp +++ b/src/devices/boiler.cpp @@ -2344,7 +2344,7 @@ bool Boiler::set_HpInLogic(const char * value, const int8_t id) { } bool 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; } if (strlen(value) == 11 && id != 4) {