Skip to content

Commit

Permalink
Fixed health mode for SET_SINGLE_PARAMETER case
Browse files Browse the repository at this point in the history
  • Loading branch information
paveldn committed Oct 12, 2023
1 parent 76b9563 commit 54137e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/haier/hon_climate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,6 @@ haier_protocol::HaierMessage HonClimate::get_control_message() {
}

haier_protocol::HandlerError HonClimate::process_status_message_(const uint8_t *packet_buffer, uint8_t size) {

if (size < hon_protocol::HAIER_STATUS_FRAME_SIZE + this->extra_control_packet_bytes_)
return haier_protocol::HandlerError::WRONG_MESSAGE_STRUCTURE;
struct {
Expand Down Expand Up @@ -826,7 +825,7 @@ haier_protocol::HandlerError HonClimate::process_status_message_(const uint8_t *
void HonClimate::fill_control_messages_queue_() {
static uint8_t one_buf[] = {0x00, 0x01};
static uint8_t zero_buf[] = {0x00, 0x00};
if (!this->current_hvac_settings_.valid)
if (!this->current_hvac_settings_.valid && !this->force_send_control_)
return;
this->clear_control_messages_queue_();
HvacSettings climate_control;
Expand Down

0 comments on commit 54137e4

Please sign in to comment.