From 6f7484747918f4e544732618b6714713e16e0d54 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 5 Jun 2023 16:28:10 -0500 Subject: [PATCH] fix --- components/ratgdo/ratgdo.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index 681c4f4..ac3110a 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -175,12 +175,12 @@ namespace ratgdo { this->input_obst_pin_->pin_mode(gpio::FLAG_INPUT); - this->trigger_open_pin_->attach_interrupt(RATGDOComponent::isrDoorOpen, &this, gpio::INTERRUPT_ANY_EDGE); - this->trigger_close_pin_->attach_interrupt(RATGDOComponent::isrDoorClose, &this, gpio::INTERRUPT_ANY_EDGE); - this->trigger_light_pin_->attach_interrupt(RATGDOComponent::isrLight, &this, gpio::INTERRUPT_ANY_EDGE); - this->input_obst_pin_->attach_interrupt(RATGDOComponent::isrObstruction, &this, gpio::INTERRUPT_ANY_EDGE); - this->input_rpm1_pin_->attach_interrupt(RATGDOComponent::isrRPM1, &this, gpio::INTERRUPT_RISING_EDGE); - this->input_rpm2_pin_->attach_interrupt(RATGDOComponent::isrRPM2, &this, gpio::INTERRUPT_RISING_EDGE); + this->trigger_open_pin_->attach_interrupt(RATGDOStore::isrDoorOpen, &this->_store, gpio::INTERRUPT_ANY_EDGE); + this->trigger_close_pin_->attach_interrupt(RATGDOStore::isrDoorClose, &this->_stor, gpio::INTERRUPT_ANY_EDGE); + this->trigger_light_pin_->attach_interrupt(RATGDOStore::isrLight, &this->_stor, gpio::INTERRUPT_ANY_EDGE); + this->input_obst_pin_->attach_interrupt(RATGDOStore::isrObstruction, &this->_stor, gpio::INTERRUPT_ANY_EDGE); + this->input_rpm1_pin_->attach_interrupt(RATGDOStore::isrRPM1, &this->_stor, gpio::INTERRUPT_RISING_EDGE); + this->input_rpm2_pin_->attach_interrupt(RATGDOStore::isrRPM2, &this->_stor, gpio::INTERRUPT_RISING_EDGE); if (this->useRollingCodes_) { ESP_LOGD(TAG, "Syncing rolling code counter after reboot...");