summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-04-06 11:12:22 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-04-06 11:12:22 +0000
commit3d2178148bbabac312ea01ad4d9cc6d86bcff75c (patch)
treebd222448c25549d124d81ecb468f7ad3ef89bb70 /apps/tree.c
parent3b853c692e65b603c71655537288fc811b25214f (diff)
downloadrockbox-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/tree.c')
-rw-r--r--apps/tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 139043a..c9f5847 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -484,7 +484,8 @@ static bool ask_resume(bool ask_once)
#endif
/* Handle sys events, ignore button releases */
default:
- if(default_event_handler(button) || !(button & BUTTON_REL))
+ if(default_event_handler(button) == SYS_USB_CONNECTED ||
+ (!(button & SYS_EVENT) && !(button & BUTTON_REL)))
stop = true;
break;
}