提交 1cb4ee74 编写于 作者: B Bernard Xiong

Merge pull request #158 from grissiom/finsh-fix

finsh: unregister rx_indicate when closing the device
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册