diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-09-01 23:36:15 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-09-01 23:36:15 +0000 |
commit | f05cdc46f23bf28d31dfc4fc2ebe4d20e4d6f961 (patch) | |
tree | 26fb9244e04ffd4297cb918ae8c7de2b731dd28a /apps/settings_list.c | |
parent | c00fbc4d06dee2f075e8bb1671350c3079c992bf (diff) | |
download | rockbox-f05cdc46f23bf28d31dfc4fc2ebe4d20e4d6f961.tar.gz rockbox-f05cdc46f23bf28d31dfc4fc2ebe4d20e4d6f961.zip |
Android: don't compile powermgmt-sim.c
Instead implement a bit of battery monitoring. Currently it only fetches the battery level (in %) every 30s,
but it could do more like battery status, charger connected, voltage...
Theoretically, we could also exit/quit after some time of inactivity too
(perhaps not a bad idea since Rockbox puts a slight but still non-zero CPU load even if doing nothing).
Ironically, Rockbox is now the only way to get the exact battery level (at least I haven't found anything yet) on my phone :-)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27974 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings_list.c')
-rw-r--r-- | apps/settings_list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings_list.c b/apps/settings_list.c index cab326671a..5a9eeb90ce 100644 --- a/apps/settings_list.c +++ b/apps/settings_list.c | |||
@@ -763,7 +763,7 @@ const struct settings_list settings[] = { | |||
763 | #endif | 763 | #endif |
764 | "max files in dir", UNIT_INT, 50, 10000, 50, | 764 | "max files in dir", UNIT_INT, 50, 10000, 50, |
765 | NULL, NULL, NULL), | 765 | NULL, NULL, NULL), |
766 | #if BATTERY_CAPACITY_INC > 0 | 766 | #if defined(BATTERY_CAPACITY_INC) && BATTERY_CAPACITY_INC > 0 |
767 | INT_SETTING(0, battery_capacity, LANG_BATTERY_CAPACITY, | 767 | INT_SETTING(0, battery_capacity, LANG_BATTERY_CAPACITY, |
768 | BATTERY_CAPACITY_DEFAULT, "battery capacity", UNIT_MAH, | 768 | BATTERY_CAPACITY_DEFAULT, "battery capacity", UNIT_MAH, |
769 | BATTERY_CAPACITY_MIN, BATTERY_CAPACITY_MAX, | 769 | BATTERY_CAPACITY_MIN, BATTERY_CAPACITY_MAX, |