Merge pull request #158 from grissiom/finsh-fix

finsh: unregister rx_indicate when closing the device
This commit is contained in:
Bernard Xiong 2013-09-22 15:23:56 -07:00
commit 1cb4ee74fb
1 changed files with 1 additions and 0 deletions

View File

@ -131,6 +131,7 @@ void finsh_set_device(const char* device_name)
{ {
/* close old finsh device */ /* close old finsh device */
rt_device_close(shell->device); rt_device_close(shell->device);
rt_device_set_rx_indicate(dev, RT_NULL);
} }
shell->device = dev; shell->device = dev;