Merge pull request #15 from loongyh/fix-swing

Don't treat swing mode 'auto' as CLIMATE_SWING_VERTICAL
This commit is contained in:
Geoff Davis 2020-07-05 21:53:11 -07:00 committed by GitHub
commit 76b711d730
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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