Skip to content

Commit

Permalink
Merge pull request #185 from arnerek/main
Browse files Browse the repository at this point in the history
Widevane
  • Loading branch information
echavet authored Nov 27, 2024
2 parents fb827f8 + 838e9e5 commit bc1c88e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions components/cn105/hp_readings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,8 @@ 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");
wideVaneAdj = (data[10] & 0xF0) == 0x80 ? true : false;
Expand Down

0 comments on commit bc1c88e

Please sign in to comment.