summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/main.c2
-rw-r--r--apps/tree.c13
2 files changed, 2 insertions, 13 deletions
diff --git a/apps/main.c b/apps/main.c
index b69275be7f..fd9b3760bf 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -77,6 +77,8 @@ void init(void)
77 global_settings.loudness, 77 global_settings.loudness,
78 global_settings.bass_boost, 78 global_settings.bass_boost,
79 global_settings.avc ); 79 global_settings.avc );
80 while (button_get(false) != 0)
81 ; /* Empty the keyboard buffer */
80} 82}
81 83
82#else 84#else
diff --git a/apps/tree.c b/apps/tree.c
index a8d72f4488..dcaa9558bd 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -511,21 +511,8 @@ bool ask_resume(void)
511#endif 511#endif
512 lcd_update(); 512 lcd_update();
513 513
514#ifdef SIMULATOR
515 {
516 /* Special code for SIMULATOR because it might return the
517 "enter"-keyrelease of the shell when starting the simulator. */
518 unsigned short key;
519 do {
520 key=button_get(true);
521 if (key == BUTTON_PLAY)
522 return true;
523 } while (key & BUTTON_REL);
524 }
525#else
526 if (button_get(true) == BUTTON_PLAY) 514 if (button_get(true) == BUTTON_PLAY)
527 return true; 515 return true;
528#endif
529 return false; 516 return false;
530} 517}
531 518