mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-07 09:52:08 +08:00
Merge pull request #158 from grissiom/finsh-fix
finsh: unregister rx_indicate when closing the device
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user