From b14c6cf7ae7c8f647c9e9cc6b99041437a7132be Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 5 Jun 2023 14:12:29 -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 eaa87fe..9f0bcb7 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -54,12 +54,12 @@ namespace ratgdo { // and fire interrupt by mistake pinMode(INPUT_OBST, INPUT); - attachInterrupt(TRIGGER_OPEN, &this->isrDoorOpen, CHANGE); - attachInterrupt(TRIGGER_CLOSE, &this->isrDoorClose, CHANGE); - attachInterrupt(TRIGGER_LIGHT, &this->isrLight, CHANGE); - attachInterrupt(INPUT_OBST, &this->isrObstruction, CHANGE); - attachInterrupt(INPUT_RPM1, &this->isrRPM1, RISING); - attachInterrupt(INPUT_RPM2, &this->isrRPM2, RISING); + attachInterrupt(TRIGGER_OPEN, RATGDOComponent::isrDoorOpen, CHANGE); + attachInterrupt(TRIGGER_CLOSE, RATGDOComponent::isrDoorClose, CHANGE); + attachInterrupt(TRIGGER_LIGHT, RATGDOComponent::isrLight, CHANGE); + attachInterrupt(INPUT_OBST, RATGDOComponent::isrObstruction, CHANGE); + attachInterrupt(INPUT_RPM1, RATGDOComponent::isrRPM1, RISING); + attachInterrupt(INPUT_RPM2, RATGDOComponent::isrRPM2, RISING); if (this->useRollingCodes_) { ESP_LOGD(TAG, "Syncing rolling code counter after reboot...");