bugfix: needDefrost bit doesn't affect defrost mode now

This commit is contained in:
GrKoR
2022-11-24 01:38:08 +04:00
parent a7fb16cf11
commit 97ec28011d

View File

@@ -1294,7 +1294,10 @@ class AirCon : public esphome::Component, public esphome::climate::Climate {
_current_ac_state.invertor_power = stateFloat; _current_ac_state.invertor_power = stateFloat;
// режим разморозки // режим разморозки
bool temp = (big_info_body->needDefrost && big_info_body->defrostMode); //bool temp = (big_info_body->needDefrost && big_info_body->defrostMode);
// TODO: need additional info for bit big_info_body->needDefrost
// Some HVACs use it but others don't (they use bit 3 instead of bit 4 (needDefrost))
bool temp = big_info_body->defrostMode;
stateChangedFlag = stateChangedFlag || (_current_ac_state.defrost != temp); stateChangedFlag = stateChangedFlag || (_current_ac_state.defrost != temp);
_current_ac_state.defrost = temp; _current_ac_state.defrost = temp;