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..."); }