From edf6c9e5f211b1f6f6bcf5e8f978c05a48b391eb Mon Sep 17 00:00:00 2001 From: klaudiusz223 Date: Sat, 4 Feb 2023 19:16:43 +0100 Subject: [PATCH] fixes compilation error with esp-idf --- .../components/time_based_tilt/time_based_tilt_cover.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esphome/components/time_based_tilt/time_based_tilt_cover.cpp b/esphome/components/time_based_tilt/time_based_tilt_cover.cpp index 50fa060fdb..df4769d586 100644 --- a/esphome/components/time_based_tilt/time_based_tilt_cover.cpp +++ b/esphome/components/time_based_tilt/time_based_tilt_cover.cpp @@ -139,7 +139,7 @@ void TimeBasedTiltCover::loop() { this->last_publish_time_= now; if ( this->recalibration_time_ > 0 && - ((this->position == COVER_CLOSED && (tilt_time == 0 || this->tilt == COVER_CLOSED) || + (((this->position == COVER_CLOSED && (tilt_time == 0 || this->tilt == COVER_CLOSED)) || (this->position == COVER_OPEN && (tilt_time == 0 || this->tilt == COVER_OPEN))))) { this->fsm_state_ = STATE_CALIBRATING; @@ -176,8 +176,8 @@ void TimeBasedTiltCover::loop() { this->last_publish_time_= now; if ( this->recalibration_time_ > 0 && - ((this->position == COVER_CLOSED && ( tilt_time == 0 || this->tilt == COVER_CLOSED) || - (this->position == COVER_OPEN && ( tilt_time == 0 || this->tilt == COVER_OPEN))))) + (((this->position == COVER_CLOSED && (tilt_time == 0 || this->tilt == COVER_CLOSED)) || + (this->position == COVER_OPEN && (tilt_time == 0 || this->tilt == COVER_OPEN))))) { this->fsm_state_ = STATE_CALIBRATING; this->publish_state(false);