Fix: Si4432 interrupt examples
Added ICACHE_RAM_ATTR macro to Si4432 interrupt examples when compiling for ESP8266.
This commit is contained in:
parent
4567044deb
commit
aea35419fb
2 changed files with 6 additions and 0 deletions
|
@ -76,6 +76,9 @@ volatile bool enableInterrupt = true;
|
||||||
// is received by the module
|
// is received by the module
|
||||||
// IMPORTANT: this function MUST be 'void' type
|
// IMPORTANT: this function MUST be 'void' type
|
||||||
// and MUST NOT have any arguments!
|
// and MUST NOT have any arguments!
|
||||||
|
#ifdef ESP8266
|
||||||
|
ICACHE_RAM_ATTR
|
||||||
|
#endif
|
||||||
void setFlag(void) {
|
void setFlag(void) {
|
||||||
// check if the interrupt is enabled
|
// check if the interrupt is enabled
|
||||||
if(!enableInterrupt) {
|
if(!enableInterrupt) {
|
||||||
|
|
|
@ -75,6 +75,9 @@ volatile bool enableInterrupt = true;
|
||||||
// is transmitted by the module
|
// is transmitted by the module
|
||||||
// IMPORTANT: this function MUST be 'void' type
|
// IMPORTANT: this function MUST be 'void' type
|
||||||
// and MUST NOT have any arguments!
|
// and MUST NOT have any arguments!
|
||||||
|
#ifdef ESP8266
|
||||||
|
ICACHE_RAM_ATTR
|
||||||
|
#endif
|
||||||
void setFlag(void) {
|
void setFlag(void) {
|
||||||
// check if the interrupt is enabled
|
// check if the interrupt is enabled
|
||||||
if(!enableInterrupt) {
|
if(!enableInterrupt) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue