From d02c49da00450c1aa930fdd911d997f53ffa83bf Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 9 Jun 2023 18:37:43 -0500 Subject: [PATCH] button --- components/ratgdo/ratgdo.cpp | 2 +- components/ratgdo/ratgdo.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index 43eb575..076ff90 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -25,7 +25,7 @@ namespace ratgdo { static const uint64_t REMOTE_ID = 0x539; static const uint16_t STATUS_CMD = 0x81; - void IRAM_ATTR RATGDOStore::isrObstruction(RATGDOStore* arg) + void IRAM_ATTR HOT RATGDOStore::isrObstruction(RATGDOStore* arg) { if (arg->input_obst.digital_read()) { arg->lastObstructionHigh = millis(); diff --git a/components/ratgdo/ratgdo.h b/components/ratgdo/ratgdo.h index 2999224..00a4552 100644 --- a/components/ratgdo/ratgdo.h +++ b/components/ratgdo/ratgdo.h @@ -73,7 +73,7 @@ namespace ratgdo { int obstructionLowCount = 0; // count obstruction low pulses long lastObstructionHigh = 0; // count time between high pulses from the obst ISR - static void IRAM_ATTR isrObstruction(RATGDOStore* arg); + static void IRAM_ATTR HOT isrObstruction(RATGDOStore* arg); }; class RATGDOComponent : public uart::UARTDevice, public Component {