pimatic / RFControl

433mhz rf sniffer and receiver
GNU General Public License v3.0
116 stars 34 forks source link

Handle interrupt correctly on ESP8266 #25

Closed hvisser closed 3 years ago

hvisser commented 5 years ago

For ESP8266 the interrupt handler must be in IRAM. Newer Arduino versions for ESP seem to enforce this now. Marking handleInterrupt() with ICACHE_RAM_ATTR fixes this.

See https://forum.arduino.cc/index.php?topic=616264.msg4182494#msg4182494