Don't treat swing mode 'auto' as CLIMATE_SWING_VERTICAL

This commit is contained in:
loongyh 2020-07-06 07:44:48 +08:00
parent 6f6b84040e
commit 655ca2ac0f

View File

@ -283,10 +283,7 @@ void MitsubishiHeatPump::hpSettingsChanged() {
/* ******** HANDLE MITSUBISHI VANE CHANGES ******** /* ******** HANDLE MITSUBISHI VANE CHANGES ********
* const char* VANE_MAP[7] = {"AUTO", "1", "2", "3", "4", "5", "SWING"}; * const char* VANE_MAP[7] = {"AUTO", "1", "2", "3", "4", "5", "SWING"};
*/ */
if ( if (strcmp(currentSettings.vane, "SWING") == 0) {
(strcmp(currentSettings.vane, "AUTO") == 0)
|| (strcmp(currentSettings.vane, "SWING") == 0)
) {
this->swing_mode = climate::CLIMATE_SWING_VERTICAL; this->swing_mode = climate::CLIMATE_SWING_VERTICAL;
} }
else { else {