summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/target/arm/as3525/powermgmt-target.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/firmware/target/arm/as3525/powermgmt-target.h b/firmware/target/arm/as3525/powermgmt-target.h
index 511bcc7..cc7441f 100644
--- a/firmware/target/arm/as3525/powermgmt-target.h
+++ b/firmware/target/arm/as3525/powermgmt-target.h
@@ -35,9 +35,11 @@
#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
+/* 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.
+ * Note that when charging some models do not give an accurate reading but jump
+ * between 2 values. */
+#define ADC_BATTERY ADC_CHG_IN
#endif
#elif defined(SANSA_E200V2)