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
This commit is contained in:
Jens Arnold 2007-08-22 20:43:47 +00:00
parent a50c2b1494
commit bef4c24f39

View file

@ -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)