From c279826f98a118fc74a01f6385e726cdd0c85001 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 5 Jun 2023 14:48:51 -0500 Subject: [PATCH] fix --- components/ratgdo/ratgdo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index 37fa21e..a5e4be4 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -378,7 +378,7 @@ namespace ratgdo { } else if (this->obstructionLowCount == 0) { // if the line is high and the last high pulse was more than 70ms ago, // then there is an obstruction present - if ((this->input_obst_pin_->digital_read() && currentMillis - this->lastObstructionHigh > 70) { + if (this->input_obst_pin_->digital_read() && currentMillis - this->lastObstructionHigh > 70) { obstructionDetected(); } else { // asleep