[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
7e13ec4430
commit
80e547d4ef
|
@ -460,9 +460,9 @@ namespace ratgdo {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this->obstruction_sensor_detected_){
|
if (this->obstruction_sensor_detected_) {
|
||||||
this->door_action(DoorAction::CLOSE);
|
this->door_action(DoorAction::CLOSE);
|
||||||
}else if(*this->door_state == DoorState::OPEN){
|
} else if (*this->door_state == DoorState::OPEN) {
|
||||||
ESP_LOGD(TAG, "No obstruction sensors detected. Close using TOGGLE.");
|
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