Compare commits
4 Commits
7b1f522769
...
997379e36b
Author | SHA1 | Date |
---|---|---|
Beat | 997379e36b | |
pre-commit-ci[bot] | a2bd0287b1 | |
Beat | 21d490cb77 | |
Beat | 60881341d8 |
|
@ -8,7 +8,7 @@ repos:
|
|||
- id: end-of-file-fixer
|
||||
- id: check-added-large-files
|
||||
- repo: https://github.com/pre-commit/mirrors-clang-format
|
||||
rev: v19.1.5
|
||||
rev: v19.1.6
|
||||
hooks:
|
||||
- id: clang-format
|
||||
types_or:
|
||||
|
|
|
@ -460,11 +460,11 @@ namespace ratgdo {
|
|||
return;
|
||||
}
|
||||
|
||||
if (this->obstruction_sensor_detected_) {
|
||||
this->door_action(DoorAction::CLOSE);
|
||||
} else if (*this->door_state == DoorState::OPEN) {
|
||||
if (!this->obstruction_sensor_detected_ && (*this->door_state == DoorState::OPEN || *this->door_state == DoorState::STOPPED)) {
|
||||
ESP_LOGD(TAG, "No obstruction sensors detected. Close using TOGGLE.");
|
||||
this->door_action(DoorAction::TOGGLE);
|
||||
} else {
|
||||
this->door_action(DoorAction::CLOSE);
|
||||
}
|
||||
|
||||
if (*this->closing_duration > 0) {
|
||||
|
|
Loading…
Reference in New Issue