Merge pull request #591 from pathletboy/master

[Kernel] allow parameter "recved" can be NULL in function "rt_event_recv"
This commit is contained in:
Bernard Xiong 2015-11-23 16:37:14 +08:00
commit ac5ff712e2
1 changed files with 2 additions and 1 deletions

View File

@ -1188,7 +1188,8 @@ rt_err_t rt_event_recv(rt_event_t event,
level = rt_hw_interrupt_disable();
/* set received event */
*recved = thread->event_set;
if (recved)
*recved = thread->event_set;
}
/* enable interrupt */