提交 6045b3a0 编写于 作者: B bernard

[LogTrace] Use OFLAG_RDWR to replace FLAG_RDWR when opening a device.

上级 b23de95f
......@@ -404,7 +404,7 @@ rt_err_t log_trace_set_device(const char *device_name)
rt_err_t result;
/* open device */
result = rt_device_open(output_device, RT_DEVICE_FLAG_STREAM | RT_DEVICE_FLAG_RDWR);
result = rt_device_open(output_device, RT_DEVICE_FLAG_STREAM | RT_DEVICE_OFLAG_RDWR);
if (result != RT_EOK)
{
rt_kprintf("Open trace device failed.\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册