summaryrefslogtreecommitdiff
path: root/main.ino
diff options
context:
space:
mode:
Diffstat (limited to 'main.ino')
-rw-r--r--main.ino9
1 files changed, 9 insertions, 0 deletions
diff --git a/main.ino b/main.ino
index 88d132f..a4c64bc 100644
--- a/main.ino
+++ b/main.ino
@@ -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();