提交 dd7fff2b 编写于 作者: wzyy2's avatar wzyy2

[gdb]Change open flag

上级 2a1e7d56
......@@ -67,7 +67,7 @@ void gdb_set_device(const char* device_name)
}
/* open this device and set the new device */
if (rt_device_open(dev, RT_DEVICE_OFLAG_RDWR) == RT_EOK)
if (rt_device_open(dev, RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_STREAM) == RT_EOK)
{
gdb_dev = dev;
gdb_serial = (struct rt_serial_device *)gdb_dev;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册