File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1476,13 +1476,12 @@ namespace esphome
14761476 small_info_body = (packet_small_info_body_t *)(_inPacket.body );
14771477
14781478 // в малом пакете передается большое количество установленных пользователем параметров работы
1479- // stateFloat = 8 + (small_info_body->target_temp_int_and_v_louver >> 3 ) + 0.5 * (float) (small_info_body->target_temp_frac >> 7 );
1480- stateFloat = 8.0 + (float )(small_info_body->target_temp_int ) + (( small_info_body->target_temp_frac_bool ) ? 0.5 : 0 .0 );
1479+ // stateFloat = 8.0 + (float)( small_info_body->target_temp_int ) + ( (small_info_body->target_temp_frac_bool) ? 0.5 : 0.0 );
1480+ stateFloat = 8.0 + (float )(small_info_body->target_temp_int ) + (small_info_body->target_temp_frac_dec / 10 .0 );
14811481 stateChangedFlag = stateChangedFlag || (_current_ac_state.temp_target != stateFloat);
14821482 _current_ac_state.temp_target = stateFloat;
14831483 _current_ac_state.temp_target_matter = true ;
14841484
1485- // stateByte = small_info_body->target_temp_int_and_v_louver & AC_LOUVERV_MASK;
14861485 stateByte = small_info_body->v_louver ;
14871486 stateChangedFlag = stateChangedFlag || (_current_ac_state.louver .louver_v != (ac_louver_V)stateByte);
14881487 _current_ac_state.louver .louver_v = (ac_louver_V)stateByte;
@@ -1946,6 +1945,7 @@ namespace esphome
19461945 {
19471946 pack->body [4 ] = (pack->body [4 ] & ~AC_TEMP_TARGET_FRAC_PART_MASK);
19481947 }
1948+ pack->body [14 ] = ((uint8_t )(cmd->temp_target * 10 )) % 10 ;
19491949 }
19501950
19511951 // значение ограничения мощности инвертора
Original file line number Diff line number Diff line change 3434 ClimateSwingMode ,
3535)
3636
37- AUX_AC_FIRMWARE_VERSION = '0.3.1 '
37+ AUX_AC_FIRMWARE_VERSION = '0.3.2 '
3838AC_PACKET_TIMEOUT_MIN = 150
3939AC_PACKET_TIMEOUT_MAX = 600
4040AC_POWER_LIMIT_MIN = 30
You can’t perform that action at this time.
0 commit comments