mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-19 03:51:28 +08:00
[LogTrace] Use OFLAG_RDWR to replace FLAG_RDWR when opening a device.
This commit is contained in:
parent
b23de95ff4
commit
6045b3a075
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user