fix
This commit is contained in:
parent
692f45fba5
commit
bd2585ceaf
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue