From 174a1a04e9789d50c3ba89954d0c2593d18af2f0 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 5 Jun 2023 18:41:20 -0500 Subject: [PATCH] fix --- components/ratgdo/ratgdo.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index 9c69fe1..7637136 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -127,13 +127,10 @@ namespace ratgdo { this->trigger_light_pin_->attach_interrupt(RATGDOStore::isrLight, &this->store_, gpio::INTERRUPT_ANY_EDGE); this->input_obst_pin_->attach_interrupt(RATGDOStore::isrObstruction, &this->store_, gpio::INTERRUPT_ANY_EDGE); - if (this->useRollingCodes_) { - ESP_LOGD(TAG, "Syncing rolling code counter after reboot..."); - sync(); // if rolling codes are being used (rolling code counter > 0), send - // reboot/sync to the opener on startup - } else { - ESP_LOGD(TAG, "Rolling codes are disabled."); - } + ESP_LOGD(TAG, "Syncing rolling code counter after reboot..."); + sync(); // if rolling codes are being used (rolling code counter > 0), send + // reboot/sync to the opener on startup + } void RATGDOComponent::loop()