From 94dbb27f03dee144c9cd6bc87d5242f737af689c Mon Sep 17 00:00:00 2001 From: Brokly Date: Fri, 27 May 2022 07:51:21 +0300 Subject: [PATCH] Add files via upload --- components/aux_ac/aux_ac.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/aux_ac/aux_ac.h b/components/aux_ac/aux_ac.h index 1738976..ca1f645 100644 --- a/components/aux_ac/aux_ac.h +++ b/components/aux_ac/aux_ac.h @@ -1317,9 +1317,9 @@ class AirCon : public esphome::Component, public esphome::climate::Climate { const float koef = ((float)OUTDOOR_FILTER_PESCENT); const float antkoef = 100 - koef; static float temp = _current_ac_state.temp_outdoor*100; - temp = (temp * antkoef + koef * (big_info_body->outdoor_temperature - 0x20))/100; - stateChangedFlag = stateChangedFlag || (_current_ac_state.temp_outdoor != temp); - _current_ac_state.temp_outdoor = temp; + temp = temp * antkoef + koef * (big_info_body->outdoor_temperature - 0x20); + stateChangedFlag = stateChangedFlag || (_current_ac_state.temp_outdoor != temp/100); + _current_ac_state.temp_outdoor = temp/100; } // температура входящей магистрали