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:
parent
110ae31e2f
commit
e90006133b
1 changed files with 5 additions and 1 deletions
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue