From 7a732d9a251368358d7b53cc6112bbb4dee6eb7b Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 5 Jun 2023 16:38:21 -0500 Subject: [PATCH] fix --- components/ratgdo/ratgdo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index c4c8f65..00afa6b 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -403,7 +403,7 @@ namespace ratgdo { unsigned long interruptTime = millis(); // Anything less than 100ms is a bounce and is ignored if (interruptTime - lastInterruptTime > 250) { - this->doorIsObstructed = true; + this->store_.doorIsObstructed = true; this->status_obst_pin_->digital_write(true); ESP_LOGD(TAG, "Obstruction Detected"); } @@ -413,7 +413,7 @@ namespace ratgdo { void RATGDOComponent::obstructionCleared() { if (this->doorIsObstructed) { - this->doorIsObstructed = false; + this->store_.doorIsObstructed = false; this->status_obst_pin_->digital_write(false); ESP_LOGD(TAG, "Obstruction Cleared"); }