[gdb]Change open flag
This commit is contained in:
parent
2a1e7d56fc
commit
dd7fff2b31
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue