Skip to content

Commit

Permalink
Added ESP IRAM attribute to examples (#1010)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgromes committed Mar 10, 2024
1 parent 4993ac7 commit 24ffbfc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/SX126x/SX126x_PingPong/SX126x_PingPong.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions examples/SX127x/SX127x_PingPong/SX127x_PingPong.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 24ffbfc

Please sign in to comment.