From 3d2178148bbabac312ea01ad4d9cc6d86bcff75c Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Wed, 6 Apr 2005 11:12:22 +0000 Subject: Moved the car adapter mode handling to apps/, now every thread gets SYS_CHARGER_CONNECTED and SYS_CHARGER_DISCONNECTED events git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6255 a1c6a512-1295-4272-9138-f99709370657 --- apps/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/main.c') diff --git a/apps/main.c b/apps/main.c index b5c6364080..af84a46984 100644 --- a/apps/main.c +++ b/apps/main.c @@ -58,7 +58,7 @@ #include "power.h" #include "talk.h" #include "plugin.h" - +#include "misc.h" #if (CONFIG_HWCODEC == MASNONE) #include "pcm_playback.h" @@ -271,6 +271,9 @@ void init(void) #if (CONFIG_HWCODEC == MASNONE) pcm_init(); #endif +#ifdef HAVE_CHARGING + car_adapter_mode_init(); +#endif } int main(void) -- cgit v1.2.3