mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
fix bool command for hp input #600
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user