summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-08-22 20:43:47 +0000
committerJens Arnold <amiconn@rockbox.org>2007-08-22 20:43:47 +0000
commitbef4c24f395b59be1316ab732f6bd81590df36fb (patch)
tree3d71dce7ec6a49e90c60a05327d0e5f8bf9a2280
parenta50c2b149497c3213e0d52c5572a70008de13cb6 (diff)
downloadrockbox-bef4c24f395b59be1316ab732f6bd81590df36fb.tar.gz
rockbox-bef4c24f395b59be1316ab732f6bd81590df36fb.tar.bz2
rockbox-bef4c24f395b59be1316ab732f6bd81590df36fb.zip
H10 ADC values are 10 bit, hence we need 3 hex digits.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14431 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/debug_menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 5ae6769b4d..41507708d4 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1204,10 +1204,10 @@ bool dbg_ports(void)
#if defined(IRIVER_H10) || defined(IRIVER_H10_5GB)
line++;
- snprintf(buf, sizeof(buf), "BATT: %02x UNK1: %02x", adc_read(ADC_BATTERY),
+ snprintf(buf, sizeof(buf), "BATT: %03x UNK1: %03x", adc_read(ADC_BATTERY),
adc_read(ADC_UNKNOWN_1));
lcd_puts(0, line++, buf);
- snprintf(buf, sizeof(buf), "REM: %02x PAD: %02x", adc_read(ADC_REMOTE),
+ snprintf(buf, sizeof(buf), "REM: %03x PAD: %03x", adc_read(ADC_REMOTE),
adc_read(ADC_SCROLLPAD));
lcd_puts(0, line++, buf);
#elif defined(SANSA_E200)