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 --- uisimulator/common/SOURCES | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uisimulator') diff --git a/uisimulator/common/SOURCES b/uisimulator/common/SOURCES index db5b22fa42..5f068c5bdc 100644 --- a/uisimulator/common/SOURCES +++ b/uisimulator/common/SOURCES @@ -12,7 +12,7 @@ backlight-sim.c #if (CONFIG_PLATFORM & PLATFORM_SDL) io.c sim_tasks.c +powermgmt-sim.c #endif /* this is still needed for application since it has some stubs */ -powermgmt-sim.c stubs.c -- cgit v1.2.3