forked from len0rd/rockbox
Clipv2/Clip+ : use CHG_IN adc channel, it seems to work better than BVDD and RTCSUP
They're all the same when charger is unplugged, but when it's plugged: - BVDD is way too high - RTCSUP oscillates between 2 values - CHG_IN acts like RTCSUP on some models but seems to works fine on my Clip+ git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25405 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e35fe82931
commit
124188f41c
1 changed files with 5 additions and 3 deletions
|
|
@ -35,9 +35,11 @@
|
||||||
#if defined(SANSA_CLIP)
|
#if defined(SANSA_CLIP)
|
||||||
#define ADC_BATTERY ADC_BVDD
|
#define ADC_BATTERY ADC_BVDD
|
||||||
#else
|
#else
|
||||||
/* ADC_RTCSUP seems to represent battery voltage better than ADC_BVDD during
|
/* ADC_CHG_IN seems to represent battery voltage better than ADC_BVDD during
|
||||||
* charging (ADC_BVDD is way too high) and appears the same in normal use. */
|
* charging (ADC_BVDD is way too high) and appears the same in normal use.
|
||||||
#define ADC_BATTERY ADC_RTCSUP
|
* Note that when charging some models do not give an accurate reading but jump
|
||||||
|
* between 2 values. */
|
||||||
|
#define ADC_BATTERY ADC_CHG_IN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif defined(SANSA_E200V2)
|
#elif defined(SANSA_E200V2)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue