Merge pull request #323 from weety/finsh_shell

[finsh] fixed finsh issue.
This commit is contained in:
Bernard Xiong 2014-08-27 06:22:58 +08:00
commit 3fa6d290af
1 changed files with 1 additions and 1 deletions

View File

@ -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;