diff options
| author | wanghaijing <[email protected]> | 2021-02-22 10:11:42 +0800 |
|---|---|---|
| committer | wanghaijing <[email protected]> | 2021-02-22 10:12:49 +0800 |
| commit | b39a7c48227eb3969528c46eb200868bd503c43a (patch) | |
| tree | 7839e8d09e86146157baa72493e4a1e96f4ebbf0 /components/drivers | |
| parent | 88d3bb7da592331f528e0d9c36a5f71032dab9f5 (diff) | |
[fix] flag 的赋值使用宏的方式
Diffstat (limited to 'components/drivers')
| -rw-r--r-- | components/drivers/src/waitqueue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/src/waitqueue.c b/components/drivers/src/waitqueue.c index 02240edbdf..4f7cd32989 100644 --- a/components/drivers/src/waitqueue.c +++ b/components/drivers/src/waitqueue.c @@ -121,7 +121,7 @@ int rt_wqueue_wait(rt_wqueue_t *queue, int condition, int msec) level = rt_hw_interrupt_disable(); __exit_wakeup: - queue->flag = 0; + queue->flag = RT_WQ_FLAG_CLEAN; rt_hw_interrupt_enable(level); rt_wqueue_remove(&__wait); |
