summaryrefslogtreecommitdiff
path: root/components/finsh/shell.c
diff options
context:
space:
mode:
authorbernard <[email protected]>2014-09-11 12:55:18 +0800
committerbernard <[email protected]>2014-09-11 12:55:18 +0800
commit3b5c2e2f9fe85e160c0184a2cc107a6925c8746b (patch)
tree12e276153e514a91898696f104b82b1b49d46773 /components/finsh/shell.c
parent1f3ea02c5ace84d848a03fb014a664bdf586a07d (diff)
parent0ad7359b03158eb17d1cb3a62c7fde3d528a8ecc (diff)
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'components/finsh/shell.c')
-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 4d7035c139..ccdb7bc864 100644
--- a/components/finsh/shell.c
+++ b/components/finsh/shell.c
@@ -119,7 +119,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;