From c45db2e8eeabc05b76c7938dd4e670c6e2d724b3 Mon Sep 17 00:00:00 2001 From: Stephen Crane Date: Wed, 8 Jul 2020 14:33:52 +0100 Subject: [PATCH] esp8266 wants ICACHE_RAM_ATTR --- ps2drv.cpp | 3 +++ 1 file changed, 3 insertions(+) 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;