components,finsh,shell: poll the console
This commit is contained in:
parent
0a091fd303
commit
e5eb90efca
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ void finsh_set_device(const char *device_name)
|
||||||
/* check whether it's a same device */
|
/* check whether it's a same device */
|
||||||
if (dev == shell->device) return;
|
if (dev == shell->device) return;
|
||||||
/* open this device and set the new device in finsh shell */
|
/* open this device and set the new device in finsh shell */
|
||||||
if (rt_device_open(dev, RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_INT_RX | \
|
if (rt_device_open(dev, RT_DEVICE_OFLAG_RDWR | /*RT_DEVICE_FLAG_INT_RX | */ \
|
||||||
RT_DEVICE_FLAG_STREAM) == RT_EOK)
|
RT_DEVICE_FLAG_STREAM) == RT_EOK)
|
||||||
{
|
{
|
||||||
if (shell->device != RT_NULL)
|
if (shell->device != RT_NULL)
|
||||||
|
|
Loading…
Add table
Reference in a new issue