mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-09 20:45:41 +08:00
[Kernel] Use stream mode to open console device.
This commit is contained in:
1 parent
6045b3a075
commit
1f3ea02c5a
1 file changed
+1
-1
+1
-1
@@ -1073,7 +1073,7 @@ rt_device_t rt_console_set_device(const char *name)
|
||||
|
||||
/* set new console device */
|
||||
_console_device = new;
|
||||
rt_device_open(_console_device, RT_DEVICE_OFLAG_RDWR);
|
||||
rt_device_open(_console_device, RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_STREAM);
|
||||
}
|
||||
|
||||
return old;
|
||||
|
||||
Reference in new issue
Block a user