summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ipc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ipc.c b/src/ipc.c
index e6955bae37..8e8c4db842 100644
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -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
{