Skip to content

Commit

Permalink
Update hp_readings.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
arnerek authored Nov 9, 2024
1 parent ee0ad7d commit 838e9e5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/cn105/hp_readings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 838e9e5

Please sign in to comment.