This commit is contained in:
J. Nick Koston 2023-06-05 16:29:48 -05:00
parent 25d42f2087
commit c40dd728ab
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ namespace ratgdo {
if (currentMillis < 2000)
return;
if (!this->trigger_close.digital_read()) {
if (!arg->trigger_close.digital_read()) {
// save the time of the falling edge
arg->lastCloseDoorTime = currentMillis;
} else if (currentMillis - arg->lastCloseDoorTime > 500 && currentMillis - arg->lastCloseDoorTime < 10000) {