Skip to content

Commit

Permalink
fixes for non-cardputer targets
Browse files Browse the repository at this point in the history
  • Loading branch information
eadmaster committed Aug 5, 2024
1 parent 01f4a54 commit cd225f3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit cd225f3

Please sign in to comment.