From e5eb90efcaa2466d2ac5c792ca309a4ff43f7c9c Mon Sep 17 00:00:00 2001 From: Zihao Yu Date: Wed, 24 May 2023 14:37:24 +0800 Subject: [PATCH] components,finsh,shell: poll the console --- components/finsh/shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/finsh/shell.c b/components/finsh/shell.c index b55eb32..cfd0855 100644 --- a/components/finsh/shell.c +++ b/components/finsh/shell.c @@ -222,7 +222,7 @@ void finsh_set_device(const char *device_name) /* check whether it's a same device */ if (dev == shell->device) return; /* 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) { if (shell->device != RT_NULL)