update cpp
This commit is contained in:
parent
612fecb4d7
commit
52497998f3
@ -194,6 +194,9 @@ void MitsubishiHeatPump::on_horizontal_swing_change(const std::string &swing) {
|
|||||||
if (swing == "swing") {
|
if (swing == "swing") {
|
||||||
hp->setWideVaneSetting("SWING");
|
hp->setWideVaneSetting("SWING");
|
||||||
updated = true;
|
updated = true;
|
||||||
|
} else if (swing == "auto") {
|
||||||
|
hp->setWideVaneSetting("AUTO");
|
||||||
|
updated = true;
|
||||||
} else if (swing == "split") {
|
} else if (swing == "split") {
|
||||||
hp->setWideVaneSetting("<>");
|
hp->setWideVaneSetting("<>");
|
||||||
updated = true;
|
updated = true;
|
||||||
@ -526,6 +529,8 @@ void MitsubishiHeatPump::hpSettingsChanged() {
|
|||||||
|
|
||||||
if (strcmp(currentSettings.wideVane, "SWING") == 0) {
|
if (strcmp(currentSettings.wideVane, "SWING") == 0) {
|
||||||
this->update_swing_horizontal("swing");
|
this->update_swing_horizontal("swing");
|
||||||
|
} else if (strcmp(currentSettings.wideVane, "AUTO") == 0) {
|
||||||
|
this->update_swing_horizontal("auto");
|
||||||
} else if (strcmp(currentSettings.wideVane, "<>") == 0) {
|
} else if (strcmp(currentSettings.wideVane, "<>") == 0) {
|
||||||
this->update_swing_horizontal("split");
|
this->update_swing_horizontal("split");
|
||||||
} else if (strcmp(currentSettings.wideVane, "<<") == 0) {
|
} else if (strcmp(currentSettings.wideVane, "<<") == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user