forked from len0rd/rockbox
Added the IS_SYSEVENT() macro
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6256 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3d2178148b
commit
ce726be195
2 changed files with 3 additions and 1 deletions
|
@ -485,7 +485,7 @@ static bool ask_resume(bool ask_once)
|
|||
/* Handle sys events, ignore button releases */
|
||||
default:
|
||||
if(default_event_handler(button) == SYS_USB_CONNECTED ||
|
||||
(!(button & SYS_EVENT) && !(button & BUTTON_REL)))
|
||||
(IS_SYSEVENT(button) && !(button & BUTTON_REL)))
|
||||
stop = true;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -91,4 +91,6 @@ extern void mutex_lock(struct mutex *m);
|
|||
extern void mutex_unlock(struct mutex *m);
|
||||
extern void tick_start(unsigned int interval_in_ms);
|
||||
|
||||
#define IS_SYSEVENT(ev) ((ev & SYS_EVENT) == SYS_EVENT)
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue