Merge pull request #3773 from ErnestChen1/event_option0717

[modify] if ... else if constructs to be terminated with an else clau…
This commit is contained in:
Bernard Xiong 2020-08-03 21:41:13 +08:00 committed by GitHub
commit c0d78d4f88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 2 deletions

View File

@ -1089,6 +1089,13 @@ rt_err_t rt_event_send(rt_event_t event, rt_uint32_t set)
status = RT_EOK; status = RT_EOK;
} }
} }
else
{
/* enable interrupt */
rt_hw_interrupt_enable(level);
return -RT_EINVAL;
}
/* move node to the next */ /* move node to the next */
n = n->next; n = n->next;