From 24ffbfc2849a52731809baefc1dacbd123bd36a3 Mon Sep 17 00:00:00 2001 From: jgromes Date: Sun, 10 Mar 2024 20:40:41 +0100 Subject: [PATCH] Added ESP IRAM attribute to examples (#1010) --- examples/SX126x/SX126x_PingPong/SX126x_PingPong.ino | 3 +++ examples/SX127x/SX127x_PingPong/SX127x_PingPong.ino | 3 +++ 2 files changed, 6 insertions(+) diff --git a/examples/SX126x/SX126x_PingPong/SX126x_PingPong.ino b/examples/SX126x/SX126x_PingPong/SX126x_PingPong.ino index fcdff8a2..99a962b2 100644 --- a/examples/SX126x/SX126x_PingPong/SX126x_PingPong.ino +++ b/examples/SX126x/SX126x_PingPong/SX126x_PingPong.ino @@ -42,6 +42,9 @@ volatile bool operationDone = false; // is transmitted or received by the module // IMPORTANT: this function MUST be 'void' type // and MUST NOT have any arguments! +#if defined(ESP8266) || defined(ESP32) + ICACHE_RAM_ATTR +#endif void setFlag(void) { // we sent or received a packet, set the flag operationDone = true; diff --git a/examples/SX127x/SX127x_PingPong/SX127x_PingPong.ino b/examples/SX127x/SX127x_PingPong/SX127x_PingPong.ino index 9e006639..df025bc9 100644 --- a/examples/SX127x/SX127x_PingPong/SX127x_PingPong.ino +++ b/examples/SX127x/SX127x_PingPong/SX127x_PingPong.ino @@ -39,6 +39,9 @@ volatile bool operationDone = false; // is transmitted or received by the module // IMPORTANT: this function MUST be 'void' type // and MUST NOT have any arguments! +#if defined(ESP8266) || defined(ESP32) + ICACHE_RAM_ATTR +#endif void setFlag(void) { // we sent or received packet, set the flag operationDone = true;