mirror of
https://github.com/GrKoR/esphome_aux_ac_component.git
synced 2025-12-11 14:07:05 +03:00
fix: inverter power limitation off
This commit is contained in:
@@ -1922,8 +1922,7 @@ namespace esphome
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ограничение мощности инвертора
|
// ограничение мощности инвертора
|
||||||
if ((cmd->inverter_power_limitation_enable) &&
|
if ((cmd->inverter_power_limitation_value != AC_INVERTER_POWER_LIMITATION_VALUE_UNTOUCHED))
|
||||||
(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);
|
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);
|
cmd->inverter_power_limitation_value = _power_limitation_value_normalise(cmd->inverter_power_limitation_value);
|
||||||
|
|||||||
Reference in New Issue
Block a user