et/devif/devif_callback.c: devif_event_trigger shouldn't return true if triggers & DEVPOLL_MASK equal zero()

This commit is contained in:
Xiang Xiao
2019-11-24 10:11:19 -06:00
committed by Gregory Nutt
parent 9efadaefc1
commit cf9f2c56cb
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -194,7 +194,7 @@ static bool devif_event_trigger(uint16_t events, uint16_t triggers)
if ((events & DEVPOLL_MASK) == (triggers & DEVPOLL_MASK))
{
return true;
return (triggers & DEVPOLL_MASK) != 0;
}
/* No.. this event set will not generate the callback */