forked from len0rd/rockbox
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
This commit is contained in:
parent
3b853c692e
commit
3d2178148b
8 changed files with 77 additions and 60 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue