From 348a995d9d4251489acad313cba1a65e8cf5dfbc Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 5 Jun 2023 13:46:59 -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 b86e7c1..2f25fdc 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -128,7 +128,7 @@ void RATGDOComponent::doorStateLoop() { this->doorState = "opening"; } - if (this->lastDirectionChangeCounter - this->doorPositionCounter > 5) { + if (lastDirectionChangeCounter - this->doorPositionCounter > 5) { if (this->doorState != "closing") { ESP_LOGD(TAG, "Door Closing..."); }