current-based cover fix copy paste mistake (#4124)

This commit is contained in:
Jesse Hills 2022-11-30 10:59:20 +13:00
parent 72b2943332
commit bae9a950c0
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A

View file

@ -179,7 +179,7 @@ bool CurrentBasedCover::is_closing_blocked_() const {
if (this->close_obstacle_current_threshold_ == FLT_MAX) {
return false;
}
return this->open_sensor_->get_state() > this->open_obstacle_current_threshold_;
return this->close_sensor_->get_state() > this->close_obstacle_current_threshold_;
}
bool CurrentBasedCover::is_initial_delay_finished_() const {
return millis() - this->start_dir_time_ > this->start_sensing_delay_;