mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 01:07:21 +00:00
[finsh] fixed finsh issue.
This commit is contained in:
@@ -118,7 +118,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);
|
||||
rt_device_set_rx_indicate(shell->device, RT_NULL);
|
||||
}
|
||||
|
||||
shell->device = dev;
|
||||
|
||||
Reference in New Issue
Block a user