From f05cdc46f23bf28d31dfc4fc2ebe4d20e4d6f961 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 1 Sep 2010 23:36:15 +0000 Subject: 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 --- apps/settings_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/settings_list.c') 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[] = { #endif "max files in dir", UNIT_INT, 50, 10000, 50, NULL, NULL, NULL), -#if BATTERY_CAPACITY_INC > 0 +#if defined(BATTERY_CAPACITY_INC) && BATTERY_CAPACITY_INC > 0 INT_SETTING(0, battery_capacity, LANG_BATTERY_CAPACITY, BATTERY_CAPACITY_DEFAULT, "battery capacity", UNIT_MAH, BATTERY_CAPACITY_MIN, BATTERY_CAPACITY_MAX, -- cgit v1.2.3