This commit is contained in:
J. Nick Koston 2023-06-05 18:34:17 -05:00
parent 692f45fba5
commit bd2585ceaf
No known key found for this signature in database
1 changed files with 0 additions and 10 deletions

View File

@ -478,11 +478,6 @@ namespace ratgdo {
ESP_LOGD(TAG, "The door is already %s", this->doorStates[this->store_.doorState]); ESP_LOGD(TAG, "The door is already %s", this->doorStates[this->store_.doorState]);
return; return;
} }
this->doorState = "opening"; // It takes a couple of pulses to detect
// opening/closing. by setting here, we can avoid
// bouncing from rapidly repeated commands
toggleDoor(); toggleDoor();
} }
@ -492,11 +487,6 @@ namespace ratgdo {
ESP_LOGD(TAG, "The door is already %s", this->doorStates[this->store_.doorState]); ESP_LOGD(TAG, "The door is already %s", this->doorStates[this->store_.doorState]);
return; return;
} }
this->doorState = "closing"; // It takes a couple of pulses to detect
// opening/closing. by setting here, we can avoid
// bouncing from rapidly repeated commands
toggleDoor(); toggleDoor();
} }