From ee0ad7d0e45cf813a0dac6b0b731bc56ff5e4ac5 Mon Sep 17 00:00:00 2001 From: Arne Rekdal <38076187+arnerek@users.noreply.github.com> Date: Sat, 9 Nov 2024 23:16:11 +0100 Subject: [PATCH 1/2] Update hp_readings.cpp --- components/cn105/hp_readings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/cn105/hp_readings.cpp b/components/cn105/hp_readings.cpp index 873aa98..e6dfd8e 100644 --- a/components/cn105/hp_readings.cpp +++ b/components/cn105/hp_readings.cpp @@ -205,7 +205,7 @@ void CN105Climate::getSettingsFromResponsePacket() { if (this->wideVaneAdj) { receivedSettings.wideVane = lookupByteMapValue(WIDEVANE_MAP, WIDEVANE, 7, data[10] & 0x0F, "wideVane reading", WIDEVANE_MAP[2]); } - + ESP_LOGD("Decoder", "[wideVane: %s (adj:%d)]", receivedSettings.wideVane, this->wideVaneAdj); /*if ((data[10] != 0) && (this->traits_.supports_swing_mode(climate::CLIMATE_SWING_HORIZONTAL))) { // wideVane is not always supported receivedSettings.wideVane = lookupByteMapValue(WIDEVANE_MAP, WIDEVANE, 7, data[10] & 0x0F, "wideVane reading"); wideVaneAdj = (data[10] & 0xF0) == 0x80 ? true : false; From 838e9e521a4d00e3eb8b0c958cab35e4242c8b2b Mon Sep 17 00:00:00 2001 From: Arne Rekdal <38076187+arnerek@users.noreply.github.com> Date: Sat, 9 Nov 2024 23:29:56 +0100 Subject: [PATCH 2/2] Update hp_readings.cpp --- components/cn105/hp_readings.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/cn105/hp_readings.cpp b/components/cn105/hp_readings.cpp index e6dfd8e..b4ba701 100644 --- a/components/cn105/hp_readings.cpp +++ b/components/cn105/hp_readings.cpp @@ -202,9 +202,7 @@ void CN105Climate::getSettingsFromResponsePacket() { this->wideVaneAdj = (data[10] & 0xF0) == 0x80 ? true : false; - if (this->wideVaneAdj) { - receivedSettings.wideVane = lookupByteMapValue(WIDEVANE_MAP, WIDEVANE, 7, data[10] & 0x0F, "wideVane reading", WIDEVANE_MAP[2]); - } + receivedSettings.wideVane = lookupByteMapValue(WIDEVANE_MAP, WIDEVANE, 7, data[10] & 0x0F, "wideVane reading"); ESP_LOGD("Decoder", "[wideVane: %s (adj:%d)]", receivedSettings.wideVane, this->wideVaneAdj); /*if ((data[10] != 0) && (this->traits_.supports_swing_mode(climate::CLIMATE_SWING_HORIZONTAL))) { // wideVane is not always supported receivedSettings.wideVane = lookupByteMapValue(WIDEVANE_MAP, WIDEVANE, 7, data[10] & 0x0F, "wideVane reading");