1
0
Fork 0
forked from len0rd/rockbox

Hardcode a value for the battery level until we figure out the power management on the Sansa.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11806 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Barry Wardell 2006-12-18 18:56:45 +00:00
parent 110ae31e2f
commit e90006133b

View file

@ -50,7 +50,11 @@ unsigned short adc_scan(int channel)
adc_data_2 = ((ADC_DATA_2 >> (8*channel+6)) & 0x3);
adcdata[channel] = (adc_data_1<<2 | adc_data_2);
/* FIXME: Hardcode a value for ~82% charge in here until we figure out the
ADC. This will avoid the low battery warning message. */
adcdata[ADC_UNREG_POWER] = 0x2C0;
return adcdata[channel];
}