From ffb5cacd7c552f05feea1e7755a3759ee4fbc8f7 Mon Sep 17 00:00:00 2001 From: Phil1pp <15369870+Phil1pp@users.noreply.github.com> Date: Fri, 2 May 2025 10:54:29 +0200 Subject: [PATCH] Fix ESP compiler warning --- src/knx_facade.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/knx_facade.cpp b/src/knx_facade.cpp index dfb5173..31d59fb 100644 --- a/src/knx_facade.cpp +++ b/src/knx_facade.cpp @@ -11,8 +11,8 @@ defined(ARDUINO_ARCH_RP2040)) // Only ESP8266 and ESP32 have this define. For all other platforms this is just empty. -#ifndef ICACHE_RAM_ATTR - #define ICACHE_RAM_ATTR +#ifndef IRAM_ATTR + #define IRAM_ATTR #endif #ifndef PROG_BTN_PRESS_MIN_MILLIS @@ -24,7 +24,7 @@ #endif -ICACHE_RAM_ATTR void buttonEvent() +IRAM_ATTR void buttonEvent() { static uint32_t lastEvent = 0; static uint32_t lastPressed = 0;