Skip to content

Commit bd2d62a

Browse files
committed
[DeviceDriver] Fix the flag clean issue in completion IPC.
1 parent 8cd254b commit bd2d62a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/drivers/src/completion.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ rt_err_t rt_completion_wait(struct rt_completion *completion,
9595
result = thread->error;
9696

9797
level = rt_hw_interrupt_disable();
98-
/* clean completed flag */
99-
completion->flag = RT_UNCOMPLETED;
10098
}
10199
}
100+
/* clean completed flag */
101+
completion->flag = RT_UNCOMPLETED;
102102

103103
__exit:
104104
rt_hw_interrupt_enable(level);

0 commit comments

Comments
 (0)