From 70acd5b9aaef25fe87eda86b155aa9081276040a Mon Sep 17 00:00:00 2001 From: jgromes Date: Sat, 26 Feb 2022 18:01:34 +0100 Subject: [PATCH] [SX127x] Added missin ISR flag for ESP32/ESP8266 --- .../SX127x_Channel_Activity_Detection_Interrupt.ino | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/SX127x/SX127x_Channel_Activity_Detection_Interrupt/SX127x_Channel_Activity_Detection_Interrupt.ino b/examples/SX127x/SX127x_Channel_Activity_Detection_Interrupt/SX127x_Channel_Activity_Detection_Interrupt.ino index 55372452..c1e0b105 100644 --- a/examples/SX127x/SX127x_Channel_Activity_Detection_Interrupt/SX127x_Channel_Activity_Detection_Interrupt.ino +++ b/examples/SX127x/SX127x_Channel_Activity_Detection_Interrupt/SX127x_Channel_Activity_Detection_Interrupt.ino @@ -96,6 +96,9 @@ void setFlagTimeout(void) { // is detected within timeout period // IMPORTANT: this function MUST be 'void' type // and MUST NOT have any arguments! +#if defined(ESP8266) || defined(ESP32) + ICACHE_RAM_ATTR +#endif void setFlagDetected(void) { // check if the interrupt is enabled if(!enableInterrupt) {