This commit is contained in:
J. Nick Koston 2023-06-05 18:41:20 -05:00
parent e1167051ff
commit 174a1a04e9
No known key found for this signature in database
1 changed files with 4 additions and 7 deletions

View File

@ -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()