1
0
Fork 0
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:
Linus Nielsen Feltzing 2005-04-06 13:05:06 +00:00
parent 3d2178148b
commit ce726be195
2 changed files with 3 additions and 1 deletions

View file

@ -485,7 +485,7 @@ static bool ask_resume(bool ask_once)
/* Handle sys events, ignore button releases */ /* Handle sys events, ignore button releases */
default: default:
if(default_event_handler(button) == SYS_USB_CONNECTED || if(default_event_handler(button) == SYS_USB_CONNECTED ||
(!(button & SYS_EVENT) && !(button & BUTTON_REL))) (IS_SYSEVENT(button) && !(button & BUTTON_REL)))
stop = true; stop = true;
break; break;
} }

View file

@ -91,4 +91,6 @@ extern void mutex_lock(struct mutex *m);
extern void mutex_unlock(struct mutex *m); extern void mutex_unlock(struct mutex *m);
extern void tick_start(unsigned int interval_in_ms); extern void tick_start(unsigned int interval_in_ms);
#define IS_SYSEVENT(ev) ((ev & SYS_EVENT) == SYS_EVENT)
#endif #endif