Skip to content

Commit

Permalink
Fixing coming out of sleep mode and disabling USB mode on bittboy and
Browse files Browse the repository at this point in the history
pocket go
  • Loading branch information
bittboy committed Oct 20, 2019
1 parent d792182 commit e0cd117
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 5 additions & 5 deletions simplemenu/src/logic/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,11 @@ int performAction() {
}
setupDecorations();
}
if (keys[BTN_START]&&!leftOrRightPressed) {
hotKeyPressed=0;
isUSBMode = 1;
system("./usb_mode_on.sh");
}
// if (keys[BTN_START]&&!leftOrRightPressed) {
// hotKeyPressed=0;
// isUSBMode = 1;
// system("./usb_mode_on.sh");
// }
if (keys[BTN_SELECT]&&!leftOrRightPressed) {
for(int i=0;i<100;i++) {
selectRandomGame();
Expand Down
6 changes: 4 additions & 2 deletions simplemenu/src/logic/simplemenu.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ int main(int argc, char* argv[]) {
while (running) {
while(pollEvent()){
if(getEventType()==getKeyDown()){
if (!isSuspended) {
performAction();
updateScreen();
}
resetTimeoutTimer();
performAction();
updateScreen();
} else if (getEventType()==getKeyUp()) {
if(getPressedKey()==BTN_A) {
hotKeyPressed=0;
Expand Down

0 comments on commit e0cd117

Please sign in to comment.