From 12136cfeb1f515bd9e81f385d0d2bbe21bbe3ccc Mon Sep 17 00:00:00 2001 From: weety Date: Tue, 26 Aug 2014 23:36:16 +0800 Subject: [PATCH] [finsh] fixed finsh issue. --- components/finsh/shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/finsh/shell.c b/components/finsh/shell.c index a9559954e6..00553864e3 100644 --- a/components/finsh/shell.c +++ b/components/finsh/shell.c @@ -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;