esp8266 wants ICACHE_RAM_ATTR

This commit is contained in:
Stephen Crane 2020-07-08 14:33:52 +01:00
parent b65ef6bff4
commit c45db2e8ee
1 changed files with 3 additions and 0 deletions

View File

@ -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;