Skip to content

Commit

Permalink
Toggle for close only when door is open
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulWieland committed Jul 2, 2024
1 parent 956fd05 commit 93abfa0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/ratgdo/ratgdo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,9 @@ namespace ratgdo {
}

if(this->obstruction_sensor_detected_){
this->door_action(DoorAction::CLOSE);
}else{
this->door_action(DoorAction::CLOSE);
}else if(*this->door_state == DoorState::OPEN){
ESP_LOGD(TAG, "No obstruction sensors detected. Close using TOGGLE.");
this->door_action(DoorAction::TOGGLE);
}

Expand Down

0 comments on commit 93abfa0

Please sign in to comment.