Skip to content

Commit b39a7c4

Browse files
committed
[fix] flag 的赋值使用宏的方式
1 parent 88d3bb7 commit b39a7c4

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)