Update ipc.c

程序的分支逻辑出错。
详见修改。
This commit is contained in:
greed-island 2020-03-31 23:54:41 +08:00 committed by GitHub
parent 7f6755c622
commit 08c15f1b11
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
{