1
0
Fork 0
forked from len0rd/rockbox

Clip+: fix battery voltage reading when charging : use ADC_RTCSUP like e200v1

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25340 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-03-26 07:11:03 +00:00
parent b6065a8ceb
commit ea1b3676de

View file

@ -32,7 +32,13 @@
#define BATT_CHG_V CHG_V_4_20V
#define BATT_CHG_I CHG_I_100MA
#define CHARGER_TOTAL_TIMER (6*3600*2) /* about 1.5 * capacity / current */
#if defined(SANSA_CLIP)
#define ADC_BATTERY ADC_BVDD
#else
/* ADC_RTCSUP seems to represent battery voltage better than ADC_BVDD during
* charging (ADC_BVDD is way too high) and appears the same in normal use. */
#define ADC_BATTERY ADC_RTCSUP
#endif
#elif defined(SANSA_E200V2)