diff --git a/components/finsh/shell.c b/components/finsh/shell.c index 19dd93691e5c9b5840a4554ae0ed75f0685ab1d3..8ff0e89e448b6a6011a26152eb982123b11a3311 100644 --- a/components/finsh/shell.c +++ b/components/finsh/shell.c @@ -131,6 +131,7 @@ void finsh_set_device(const char* device_name) { /* close old finsh device */ rt_device_close(shell->device); + rt_device_set_rx_indicate(dev, RT_NULL); } shell->device = dev;