summaryrefslogtreecommitdiff
path: root/firmware/export/config/shanlingq1.h
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-11-30 19:18:10 +0000
committerAidan MacDonald <amachronic@protonmail.com>2021-12-23 11:39:58 +0000
commit1a313dc9bff109d155e35bac79c475ea65198aea (patch)
tree034772dd7c6cbe3858fc1d3015256b69ad375bc5 /firmware/export/config/shanlingq1.h
parentfc678bd001937f4a218e57db629c7dae8648bf4a (diff)
downloadrockbox-1a313dc9bff109d155e35bac79c475ea65198aea.tar.gz
rockbox-1a313dc9bff109d155e35bac79c475ea65198aea.zip
Report battery current on all X1000 native targets
This allows battery run time to be calculated from the actual battery usage on the FiiO M3K and Shanling Q1. This isn't very good for the time being and the estimate tends to go all over the place due to small variations in current or voltage. The Eros Q can support this feature as well, but since it already has fixed estimates defined and the quality of the "real time" estimate is low I am not enabling it there. Change-Id: Id34a93ee4b7d66f9f7e56ef0f5149f67e8e72039
Diffstat (limited to 'firmware/export/config/shanlingq1.h')
-rw-r--r--firmware/export/config/shanlingq1.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/export/config/shanlingq1.h b/firmware/export/config/shanlingq1.h
index 16ce888958..18786e9a4b 100644
--- a/firmware/export/config/shanlingq1.h
+++ b/firmware/export/config/shanlingq1.h
@@ -76,7 +76,7 @@
76/* TODO: implement HAVE_RTC_ALARM */ 76/* TODO: implement HAVE_RTC_ALARM */
77 77
78/* Power management */ 78/* Power management */
79#define CONFIG_BATTERY_MEASURE (VOLTAGE_MEASURE) 79#define CONFIG_BATTERY_MEASURE (VOLTAGE_MEASURE|CURRENT_MEASURE)
80#define CONFIG_CHARGING CHARGING_MONITOR 80#define CONFIG_CHARGING CHARGING_MONITOR
81#define HAVE_SW_POWEROFF 81#define HAVE_SW_POWEROFF
82 82