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:
parent
b6065a8ceb
commit
ea1b3676de
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue