diff --git a/ps2drv.cpp b/ps2drv.cpp index 9a1b5c7..17a74d3 100644 --- a/ps2drv.cpp +++ b/ps2drv.cpp @@ -10,6 +10,9 @@ static volatile uint8_t head, tail; static uint8_t DataPin; // The ISR for the external interrupt +#if defined(ESP32) || defined(ESP8266) +ICACHE_RAM_ATTR +#endif void ps2interrupt(void) { static uint8_t bitcount=0;