[SX126x] Added ESP8266/ESP32 IRAM attribute
This commit is contained in:
parent
a7705236b1
commit
bb2cf12c8d
3 changed files with 9 additions and 0 deletions
|
@ -71,6 +71,9 @@ volatile bool enableInterrupt = true;
|
|||
// is 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) {
|
||||
// check if the interrupt is enabled
|
||||
if(!enableInterrupt) {
|
||||
|
|
|
@ -88,6 +88,9 @@ volatile bool enableInterrupt = true;
|
|||
// is 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) {
|
||||
// check if the interrupt is enabled
|
||||
if(!enableInterrupt) {
|
||||
|
|
|
@ -80,6 +80,9 @@ volatile bool enableInterrupt = true;
|
|||
// is transmitted 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) {
|
||||
// check if the interrupt is enabled
|
||||
if(!enableInterrupt) {
|
||||
|
|
Loading…
Add table
Reference in a new issue