Closes #1133 TinyReceiver throwing ISR not in IRAM! on ESP8266

This commit is contained in:
Armin 2023-05-08 23:22:42 +02:00
parent be70d1e16a
commit f7dfa180c2
1 changed files with 3 additions and 0 deletions

View File

@ -153,6 +153,9 @@ uint32_t sMicrosOfGap; // The length of the gap before the start bit
* It handles the NEC protocol decoding and calls the user callback function on complete.
* 5 us + 3 us for push + pop for a 16MHz ATmega
*/
#if defined(ESP8266) || defined(ESP32)
IRAM_ATTR
#endif
void IRPinChangeInterruptHandler(void) {
#if defined(_IR_MEASURE_TIMING) && defined(_IR_TIMING_TEST_PIN)
digitalWriteFast(_IR_TIMING_TEST_PIN, HIGH); // 2 clock cycles