mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 08:49:52 +03:00
wwcircmode for ems+, 2.fix #703
This commit is contained in:
@@ -1018,14 +1018,18 @@ bool Boiler::set_warmwater_circulation_mode(const char * value, const int8_t id)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (get_toggle_fetch(EMS_TYPE_UBAParameterWW)) {
|
if (v < 7) {
|
||||||
if (v < 7) {
|
LOG_INFO(F("Setting warm water circulation mode %dx3min"), v);
|
||||||
LOG_INFO(F("Setting warm water circulation mode %dx3min"), v);
|
} else if (v == 7) {
|
||||||
} else if (v == 7) {
|
LOG_INFO(F("Setting warm water circulation mode continuos"));
|
||||||
LOG_INFO(F("Setting warm water circulation mode continuos"));
|
} else {
|
||||||
} else {
|
LOG_WARNING(F("Set warm water circulation mode: Invalid value"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (get_toggle_fetch(EMS_TYPE_UBAParameterWWPlus)) {
|
||||||
|
write_command(EMS_TYPE_UBAParameterWWPlus, 11, v, EMS_TYPE_UBAParameterWWPlus);
|
||||||
|
} else {
|
||||||
write_command(EMS_TYPE_UBAParameterWW, 7, v, EMS_TYPE_UBAParameterWW);
|
write_command(EMS_TYPE_UBAParameterWW, 7, v, EMS_TYPE_UBAParameterWW);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user