提交 f2c31eeb 编写于 作者: armink_ztl's avatar armink_ztl

[DeviceDrivers]Fix dataqueue's bug when push data is timeout the lwm flag isn't reset.

上级 27028521
......@@ -119,7 +119,11 @@ rt_err_t rt_data_queue_push(struct rt_data_queue *queue,
/* thread is waked up */
result = thread->error;
level = rt_hw_interrupt_disable();
if (result != RT_EOK) goto __exit;
if (result != RT_EOK)
{
queue->waiting_lwm = RT_FALSE;
goto __exit;
}
}
queue->queue[queue->put_index & mask].data_ptr = data_ptr;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册