From c7954a0becc84c3d2aa46c8d1df32c39f5dd7232 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sun, 11 Mar 2007 15:33:59 +0000 Subject: 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 --- apps/debug_menu.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 6b5194f147..b08fcb461f 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 -- cgit v1.2.3