Compare commits
2 Commits
43d6b7353a
...
780502b959
Author | SHA1 | Date |
---|---|---|
Paul Wieland | 780502b959 | |
Paul Wieland | 93abfa0b54 |
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue