summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-03-11 15:33:59 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-03-11 15:33:59 +0000
commitc7954a0becc84c3d2aa46c8d1df32c39f5dd7232 (patch)
treeed43e436be4c6e19efee2f8b4c58284b03274f53 /apps/debug_menu.c
parent94c4724420218c678151b610da096773dca9a49c (diff)
downloadrockbox-c7954a0becc84c3d2aa46c8d1df32c39f5dd7232.zip
rockbox-c7954a0becc84c3d2aa46c8d1df32c39f5dd7232.tar.gz
rockbox-c7954a0becc84c3d2aa46c8d1df32c39f5dd7232.tar.bz2
rockbox-c7954a0becc84c3d2aa46c8d1df32c39f5dd7232.tar.xz
Clean up the debug menu serial number display code a bit and save a few bytes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12725 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r--apps/debug_menu.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 6b5194f..b08fcb4 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -567,27 +567,26 @@ static bool dbg_hw_info(void)
{
struct ds2411_id id;
- line++;
- lcd_puts(0, line++, "Serial Number:");
+ lcd_puts(0, ++line, "Serial Number:");
got_id = ds2411_read_id(&id);
if (got_id == DS2411_OK)
{
snprintf(buf, 32, " FC=%02x", (unsigned)id.family_code);
- lcd_puts(0, line++, buf);
+ lcd_puts(0, ++line, buf);
snprintf(buf, 32, " ID=%02X %02X %02X %02X %02X %02X",
(unsigned)id.uid[0], (unsigned)id.uid[1], (unsigned)id.uid[2],
(unsigned)id.uid[3], (unsigned)id.uid[4], (unsigned)id.uid[5]);
- lcd_puts(0, line++, buf);
+ lcd_puts(0, ++line, buf);
snprintf(buf, 32, " CRC=%02X", (unsigned)id.crc);
- lcd_puts(0, line++, buf);
}
else
{
snprintf(buf, 32, "READ ERR=%d", got_id);
- lcd_puts(0, line++, buf);
}
+
+ lcd_puts(0, ++line, buf);
}
#endif