mirror of
https://github.com/GrKoR/esphome_aux_ac_component.git
synced 2025-12-06 11:36:55 +03:00
Merge remote-tracking branch 'refs/remotes/origin/dev' into dev
This commit is contained in:
@@ -1911,9 +1911,12 @@ namespace esphome
|
||||
pack->body[2] = (pack->body[2] & ~AC_TEMP_TARGET_INT_PART_MASK) | (((uint8_t)(cmd->temp_target) - 8) << 3);
|
||||
|
||||
// дробная часть температуры
|
||||
if (cmd->temp_target - (uint8_t)(cmd->temp_target) >= 0.5) {
|
||||
if (cmd->temp_target - (uint8_t)(cmd->temp_target) > 0)
|
||||
{
|
||||
pack->body[4] = (pack->body[4] | AC_TEMP_TARGET_FRAC_PART_MASK);
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
pack->body[4] = (pack->body[4] & ~AC_TEMP_TARGET_FRAC_PART_MASK);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user