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/tree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/tree.c') 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; } -- cgit v1.1