Skip to content

Commit

Permalink
Merge pull request #87 from GrKoR/dev
Browse files Browse the repository at this point in the history
fix: inverter power limitation off
  • Loading branch information
GrKoR authored Oct 29, 2023
2 parents 864ad07 + 7df8ab3 commit 74d555b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/aux_ac/aux_ac.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ namespace esphome
static const uint32_t AC_PACKET_TIMEOUT_MIN;
};

const std::string Constants::AC_FIRMWARE_VERSION = "0.2.12";
const std::string Constants::AC_FIRMWARE_VERSION = "0.2.13";

// custom fan modes
const std::string Constants::MUTE = "mute";
Expand Down Expand Up @@ -1922,8 +1922,7 @@ namespace esphome
}

// ограничение мощности инвертора
if ((cmd->inverter_power_limitation_enable) &&
(cmd->inverter_power_limitation_value != AC_INVERTER_POWER_LIMITATION_VALUE_UNTOUCHED))
if ((cmd->inverter_power_limitation_value != AC_INVERTER_POWER_LIMITATION_VALUE_UNTOUCHED))
{
pack->body[13] = (pack->body[13] & ~AC_INVERTER_POWER_LIMITATION_ENABLE_MASK) | (cmd->inverter_power_limitation_enable << 7);
cmd->inverter_power_limitation_value = _power_limitation_value_normalise(cmd->inverter_power_limitation_value);
Expand Down

0 comments on commit 74d555b

Please sign in to comment.