diff options
Diffstat (limited to 'main.ino')
-rw-r--r-- | main.ino | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -54,16 +54,25 @@ void loop() { button_select.read(); } +#if (ESP32) +IRAM_ATTR // avoid crash e.g. when other code reads SD card +#endif void onButtonMovePressed() { Serial.println("button MOVE clicked"); led.blink2(); } +#if (ESP32) +IRAM_ATTR // avoid crash e.g. when other code reads SD card +#endif void onButtonMoveLongpressed() { Serial.println("button MOVE long-clicked"); led.off(); } +#if (ESP32) +IRAM_ATTR // avoid crash e.g. when other code reads SD card +#endif void onButtonSelectPressed() { Serial.println("button SELECT clicked"); led.on(); |