summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2014-08-27 06:22:58 +0800
committerBernard Xiong <[email protected]>2014-08-27 06:22:58 +0800
commit3fa6d290af43ddf9989ae7d7bb420d15f656bfb0 (patch)
tree21d4af8c38aaac8d28ff3c6dc2a217858f943509
parentd0a78615345898c0db262b6d67f005e76811b4ae (diff)
parent12136cfeb1f515bd9e81f385d0d2bbe21bbe3ccc (diff)
Merge pull request #323 from weety/finsh_shell
[finsh] fixed finsh issue.
-rw-r--r--components/finsh/shell.c2
1 files changed, 1 insertions, 1 deletions
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;