summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2007-10-25 09:29:38 +0000
committerBarry Wardell <rockbox@barrywardell.net>2007-10-25 09:29:38 +0000
commit67d5b2b46884e37383228bfbbfc58326a602c422 (patch)
tree8e319f038f0834ee8000334ace9d84c0d5e4b519 /apps/debug_menu.c
parent3461027f2672559dcb2a56b62de149633bbbc169 (diff)
FS#8013 - tidy up ADC readings in debug menu.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15299 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r--apps/debug_menu.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 5bb8a8b1fc..de40226758 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1148,31 +1148,31 @@ bool dbg_ports(void)
lcd_puts(0, line++, buf);
#elif defined(SANSA_E200)
line++;
- snprintf(buf, sizeof(buf), "ADC_BVDD: %02x", adc_read(ADC_BVDD));
+ snprintf(buf, sizeof(buf), "ADC_BVDD: %4d", adc_read(ADC_BVDD));
lcd_puts(0, line++, buf);
- snprintf(buf, sizeof(buf), "ADC_RTCSUP: %02x", adc_read(ADC_RTCSUP));
+ snprintf(buf, sizeof(buf), "ADC_RTCSUP: %4d", adc_read(ADC_RTCSUP));
lcd_puts(0, line++, buf);
- snprintf(buf, sizeof(buf), "ADC_UVDD: %02x", adc_read(ADC_UVDD));
+ snprintf(buf, sizeof(buf), "ADC_UVDD: %4d", adc_read(ADC_UVDD));
lcd_puts(0, line++, buf);
- snprintf(buf, sizeof(buf), "ADC_CHG_IN: %02x", adc_read(ADC_CHG_IN));
+ snprintf(buf, sizeof(buf), "ADC_CHG_IN: %4d", adc_read(ADC_CHG_IN));
lcd_puts(0, line++, buf);
- snprintf(buf, sizeof(buf), "ADC_CVDD: %02x", adc_read(ADC_CVDD));
+ snprintf(buf, sizeof(buf), "ADC_CVDD: %4d", adc_read(ADC_CVDD));
lcd_puts(0, line++, buf);
- snprintf(buf, sizeof(buf), "ADC_BATTEMP: %02x", adc_read(ADC_BATTEMP));
+ snprintf(buf, sizeof(buf), "ADC_BATTEMP: %4d", adc_read(ADC_BATTEMP));
lcd_puts(0, line++, buf);
- snprintf(buf, sizeof(buf), "ADC_MICSUP1: %02x", adc_read(ADC_MICSUP1));
+ snprintf(buf, sizeof(buf), "ADC_MICSUP1: %4d", adc_read(ADC_MICSUP1));
lcd_puts(0, line++, buf);
- snprintf(buf, sizeof(buf), "ADC_MICSUP2: %02x", adc_read(ADC_MICSUP2));
+ snprintf(buf, sizeof(buf), "ADC_MICSUP2: %4d", adc_read(ADC_MICSUP2));
lcd_puts(0, line++, buf);
- snprintf(buf, sizeof(buf), "ADC_VBE1: %02x", adc_read(ADC_VBE1));
+ snprintf(buf, sizeof(buf), "ADC_VBE1: %4d", adc_read(ADC_VBE1));
lcd_puts(0, line++, buf);
- snprintf(buf, sizeof(buf), "ADC_VBE2: %02x", adc_read(ADC_VBE2));
+ snprintf(buf, sizeof(buf), "ADC_VBE2: %4d", adc_read(ADC_VBE2));
lcd_puts(0, line++, buf);
- snprintf(buf, sizeof(buf), "ADC_I_MICSUP1: %02x", adc_read(ADC_I_MICSUP1));
+ snprintf(buf, sizeof(buf), "ADC_I_MICSUP1:%4d", adc_read(ADC_I_MICSUP1));
lcd_puts(0, line++, buf);
- snprintf(buf, sizeof(buf), "ADC_I_MICSUP2: %02x", adc_read(ADC_I_MICSUP2));
+ snprintf(buf, sizeof(buf), "ADC_I_MICSUP2:%4d", adc_read(ADC_I_MICSUP2));
lcd_puts(0, line++, buf);
- snprintf(buf, sizeof(buf), "ADC_VBAT: %02x", adc_read(ADC_VBAT));
+ snprintf(buf, sizeof(buf), "ADC_VBAT: %4d", adc_read(ADC_VBAT));
lcd_puts(0, line++, buf);
#endif
lcd_update();