Merge pull request #591 from pathletboy/master
[Kernel] allow parameter "recved" can be NULL in function "rt_event_recv"
This commit is contained in:
commit
ac5ff712e2
|
@ -1188,7 +1188,8 @@ rt_err_t rt_event_recv(rt_event_t event,
|
||||||
level = rt_hw_interrupt_disable();
|
level = rt_hw_interrupt_disable();
|
||||||
|
|
||||||
/* set received event */
|
/* set received event */
|
||||||
*recved = thread->event_set;
|
if (recved)
|
||||||
|
*recved = thread->event_set;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* enable interrupt */
|
/* enable interrupt */
|
||||||
|
|
Loading…
Reference in New Issue