Skip to content

Commit ffb5cac

Browse files
committed
Fix ESP compiler warning
1 parent d5b9ffa commit ffb5cac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/knx_facade.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
defined(ARDUINO_ARCH_RP2040))
1212

1313
// Only ESP8266 and ESP32 have this define. For all other platforms this is just empty.
14-
#ifndef ICACHE_RAM_ATTR
15-
#define ICACHE_RAM_ATTR
14+
#ifndef IRAM_ATTR
15+
#define IRAM_ATTR
1616
#endif
1717

1818
#ifndef PROG_BTN_PRESS_MIN_MILLIS
@@ -24,7 +24,7 @@
2424
#endif
2525

2626

27-
ICACHE_RAM_ATTR void buttonEvent()
27+
IRAM_ATTR void buttonEvent()
2828
{
2929
static uint32_t lastEvent = 0;
3030
static uint32_t lastPressed = 0;

0 commit comments

Comments
 (0)