SimpleRcScanner icon indicating copy to clipboard operation
SimpleRcScanner copied to clipboard

Compatibility with latest ESP8266 frameworks

Open Martin-Laclaustra opened this issue 5 years ago • 0 comments

Now it is required that interrupt routines are declared in cache. A fix similar to that in rc-switch is needed here:

#if defined(ESP8266) || defined(ESP32)
    // interrupt handler and related code must be in RAM on ESP8266,
    #define RECEIVE_ATTR ICACHE_RAM_ATTR
#else
    #define RECEIVE_ATTR
#endif

and in: https://github.com/sui77/SimpleRcScanner/blob/bbe88c9333ec992ce319fe7d8550555c84221fdb/htdocs/Sketchbook/SimpleRcScanner.ino#L53

RECEIVE_ATTR void handleInterrupt() {

Martin-Laclaustra avatar Feb 05 '20 06:02 Martin-Laclaustra