Merge pull request #313 from Phil1pp/esp-compiler-warning

Fix ESP compiler warning
This commit is contained in:
thelsing 2025-05-07 20:12:55 +02:00 committed by GitHub
commit 8235e59d84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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