diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-10-14 14:25:25 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-10-14 14:25:25 +0000 |
commit | 46a94bea27e74fe05497fd534d4cfbf2cdbd6e06 (patch) | |
tree | ac8bd08730a1210cb5f2485e70309452e69fb61f /apps | |
parent | 2f74eaae81a64c451da2f5650fbbbd8ce1fcc60b (diff) |
More well-behaved debug screens
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2625 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/debug_menu.c | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 77f896d7df..9f71d14156 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -232,8 +232,13 @@ bool dbg_hw_info(void) lcd_puts(0, 6, buf); lcd_update(); - - button = button_get(true); + + while(1) + { + button = button_get(true); + if(button == (BUTTON_OFF | BUTTON_REL)) + return false; + } return false; } @@ -414,7 +419,7 @@ bool dbg_ports(void) switch(button) { - case BUTTON_OFF: + case BUTTON_OFF | BUTTON_REL: return false; } } @@ -496,7 +501,7 @@ bool dbg_ports(void) switch(button) { - case BUTTON_STOP: + case BUTTON_STOP | BUTTON_REL: return false; case BUTTON_LEFT: @@ -560,8 +565,8 @@ bool dbg_rtc(void) for (c = 0; c <= 43; c++) rtc_write(0x14 + c, 0); break; - case BUTTON_OFF: - case BUTTON_LEFT: + case BUTTON_OFF | BUTTON_REL: + case BUTTON_LEFT | BUTTON_REL: return false; } } @@ -661,7 +666,8 @@ bool dbg_mas_codec(void) case BUTTON_UP: if (addr) { addr -= 4; } break; - case BUTTON_LEFT: + case BUTTON_LEFT | BUTTON_REL: + case BUTTON_OFF | BUTTON_REL: return false; } } @@ -798,8 +804,8 @@ bool view_battery(void) view++; break; - case BUTTON_LEFT: - case BUTTON_OFF: + case BUTTON_LEFT | BUTTON_REL: + case BUTTON_OFF | BUTTON_REL: return false; } } |