Merge pull request #3494 from greed-island/event

Update ipc.c
This commit is contained in:
Bernard Xiong 2020-05-30 09:43:21 +08:00 committed by GitHub
commit 423270936a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -1186,6 +1186,11 @@ rt_err_t rt_event_recv(rt_event_t event,
{
/* no waiting */
thread->error = -RT_ETIMEOUT;
/* enable interrupt */
rt_hw_interrupt_enable(level);
return -RT_ETIMEOUT;
}
else
{