From cd225f3fc22bfe323d7b96faa3fa1f7b42108070 Mon Sep 17 00:00:00 2001 From: eadmaster <925171+eadmaster@users.noreply.github.com> Date: Mon, 5 Aug 2024 02:23:01 +0200 Subject: [PATCH] fixes for non-cardputer targets --- src/main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 25364722..b8071669 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -92,7 +92,9 @@ void setup_gpio() { pinMode(0, INPUT); pinMode(10, INPUT); // Pin that reads the #elif ! defined(HAS_SCREEN) - // do nothing + // do nothing + #elif defined(M5STACK) // init must be done after tft, to make SDCard work + // do nothing #else pinMode(UP_BTN, INPUT); // Sets the power btn as an INPUT pinMode(SEL_BTN, INPUT); @@ -313,8 +315,10 @@ void loop() { } handleSerialCommands(); +#ifdef CARDPUTER checkShortcutPress(); // shortctus to quickly start apps without navigating the menus - +#endif + if (checkPrevPress()) { checkReboot(); if(index==0) index = opt - 1;