mirror of
https://github.com/ratgdo/esphome-ratgdo.git
synced 2025-02-09 01:04:30 +00:00
fix
This commit is contained in:
parent
25d42f2087
commit
c40dd728ab
@ -60,7 +60,7 @@ namespace ratgdo {
|
|||||||
if (currentMillis < 2000)
|
if (currentMillis < 2000)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!this->trigger_close.digital_read()) {
|
if (!arg->trigger_close.digital_read()) {
|
||||||
// save the time of the falling edge
|
// save the time of the falling edge
|
||||||
arg->lastCloseDoorTime = currentMillis;
|
arg->lastCloseDoorTime = currentMillis;
|
||||||
} else if (currentMillis - arg->lastCloseDoorTime > 500 && currentMillis - arg->lastCloseDoorTime < 10000) {
|
} else if (currentMillis - arg->lastCloseDoorTime > 500 && currentMillis - arg->lastCloseDoorTime < 10000) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user