summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/tcc780x/debug-tcc780x.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/firmware/target/arm/tcc780x/debug-tcc780x.c b/firmware/target/arm/tcc780x/debug-tcc780x.c
index 17bb1ff646..ef6415efc4 100644
--- a/firmware/target/arm/tcc780x/debug-tcc780x.c
+++ b/firmware/target/arm/tcc780x/debug-tcc780x.c
@@ -42,8 +42,7 @@ bool __dbg_ports(void)
42 42
43bool __dbg_hw_info(void) 43bool __dbg_hw_info(void)
44{ 44{
45 int line = 0, i, button, oldline; 45 int line = 0, i, oldline;
46 bool done=false;
47 char buf[100]; 46 char buf[100];
48 47
49 lcd_setfont(FONT_SYSFIXED); 48 lcd_setfont(FONT_SYSFIXED);
@@ -54,15 +53,13 @@ bool __dbg_hw_info(void)
54 53
55 line++; 54 line++;
56 oldline=line; 55 oldline=line;
57 while(!done) 56
57 while (1)
58 { 58 {
59 line = oldline; 59 line = oldline;
60 button = button_get(false); 60
61 61 if (button_get_w_tmo(HZ/20) == (BUTTON_POWER|BUTTON_REL))
62 button &= ~BUTTON_REPEAT; 62 break;
63
64 if (button == BUTTON_POWER)
65 done=true;
66 63
67 snprintf(buf, sizeof(buf), "current tick: %08x Seconds running: %08d", 64 snprintf(buf, sizeof(buf), "current tick: %08x Seconds running: %08d",
68 (unsigned int)current_tick, (unsigned int)current_tick/100); lcd_puts(0, line++, buf); 65 (unsigned int)current_tick, (unsigned int)current_tick/100); lcd_puts(0, line++, buf);