diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-04-06 11:12:22 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-04-06 11:12:22 +0000 |
| commit | 3d2178148bbabac312ea01ad4d9cc6d86bcff75c (patch) | |
| tree | bd222448c25549d124d81ecb468f7ad3ef89bb70 /apps/main.c | |
| parent | 3b853c692e65b603c71655537288fc811b25214f (diff) | |
| download | rockbox-3d2178148bbabac312ea01ad4d9cc6d86bcff75c.zip rockbox-3d2178148bbabac312ea01ad4d9cc6d86bcff75c.tar.gz rockbox-3d2178148bbabac312ea01ad4d9cc6d86bcff75c.tar.bz2 rockbox-3d2178148bbabac312ea01ad4d9cc6d86bcff75c.tar.xz | |
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
Diffstat (limited to 'apps/main.c')
| -rw-r--r-- | apps/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/main.c b/apps/main.c index b5c6364..af84a46 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) |