Compare commits

...

2 Commits

Author SHA1 Message Date
Paul Wieland 780502b959
Merge 93abfa0b54 into a90b6fb65f 2024-07-02 14:21:40 +00:00
Paul Wieland 93abfa0b54 Toggle for close only when door is open 2024-07-02 10:21:35 -04:00
1 changed files with 3 additions and 2 deletions

View File

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