diff --git a/src/internal/NeoEspBitBangMethod.h b/src/internal/NeoEspBitBangMethod.h index 96a8a3f..6f5a8a8 100644 --- a/src/internal/NeoEspBitBangMethod.h +++ b/src/internal/NeoEspBitBangMethod.h @@ -28,9 +28,9 @@ License along with NeoPixel. If not, see #if defined(ARDUINO_ARCH_ESP8266) || defined(ARDUINO_ARCH_ESP32) -// ESP32 doesn't use ICACHE_RAM_ATTR +// ESP32 doesn't define ICACHE_RAM_ATTR #ifndef ICACHE_RAM_ATTR -#define ICACHE_RAM_ATTR +#define ICACHE_RAM_ATTR IRAM_ATTR #endif // for esp8266, due to linker overriding the ICACHE_RAM_ATTR for cpp files, these methods are diff --git a/src/internal/NeoPixelEsp.c b/src/internal/NeoPixelEsp.c index 2296e36..52415ff 100644 --- a/src/internal/NeoPixelEsp.c +++ b/src/internal/NeoPixelEsp.c @@ -31,9 +31,9 @@ License along with NeoPixel. If not, see #include #endif -// ESP32 doesn't use ICACHE_RAM_ATTR +// ESP32 doesn't define ICACHE_RAM_ATTR #ifndef ICACHE_RAM_ATTR -#define ICACHE_RAM_ATTR +#define ICACHE_RAM_ATTR IRAM_ATTR #endif inline uint32_t _getCycleCount()