Fix for use of ISRs with the RF69 driver on the ESP8266 (note: the same change will have to be implemented for all other boards using interrupts).
Since ESP core 2.5.1 the interrupt handling has changed a bit: it is now enforced that ISRs are kept in IRAM rather than on Flash. This is something that should have been done this way all along, keeping the ISR on Flash can cause seemingly random crashes.
This is done by adding the ICACHE_FLASH_ATTR flag to the function in question. Here done, using #ifdef clauses as it is only for this specific processor.
Fix for use of ISRs with the RF69 driver on the ESP8266 (note: the same change will have to be implemented for all other boards using interrupts).
Since ESP core 2.5.1 the interrupt handling has changed a bit: it is now enforced that ISRs are kept in IRAM rather than on Flash. This is something that should have been done this way all along, keeping the ISR on Flash can cause seemingly random crashes.
This is done by adding the ICACHE_FLASH_ATTR flag to the function in question. Here done, using #ifdef clauses as it is only for this specific processor.