From 140fc01ee0d072de864998d78c8dda492f7d2af6 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 5 Jun 2023 16:38:57 -0500 Subject: [PATCH] fix --- components/ratgdo/ratgdo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index 00afa6b..1c5b321 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -412,7 +412,7 @@ namespace ratgdo { void RATGDOComponent::obstructionCleared() { - if (this->doorIsObstructed) { + if (this->store_.doorIsObstructed) { this->store_.doorIsObstructed = false; this->status_obst_pin_->digital_write(false); ESP_LOGD(TAG, "Obstruction Cleared"); @@ -494,7 +494,7 @@ namespace ratgdo { // opening/closing. by setting here, we can avoid // bouncing from rapidly repeated commands - if (this->useRollingCodes) { + if (this->useRollingCodes_) { getRollingCode("door1"); transmit(this->rollingCode, CODE_LENGTH); @@ -541,7 +541,7 @@ namespace ratgdo { void RATGDOComponent::toggleLight() { - if (this->useRollingCodes) { + if (this->useRollingCodes_) { getRollingCode("light"); transmit(this->rollingCode, CODE_LENGTH); this->pref_.save(&this->rollingCodeCounter);