Skip to content

Commit 8bb2817

Browse files
authored
Merge pull request #4366 from whj4674672/wqueue
[fix] wait queue flag 赋的值使用宏
2 parents b6373db + b39a7c4 commit 8bb2817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/drivers/src/waitqueue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ int rt_wqueue_wait(rt_wqueue_t *queue, int condition, int msec)
121121
level = rt_hw_interrupt_disable();
122122

123123
__exit_wakeup:
124-
queue->flag = 0;
124+
queue->flag = RT_WQ_FLAG_CLEAN;
125125
rt_hw_interrupt_enable(level);
126126

127127
rt_wqueue_remove(&__wait);

0 commit comments

Comments
 (0)