diff options
| author | Bernard Xiong <[email protected]> | 2013-09-22 15:23:56 -0700 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2013-09-22 15:23:56 -0700 |
| commit | 1cb4ee74fbc3243c7f938be348668bedf7e779cf (patch) | |
| tree | 0c9bd35d641f193600f55302d289192eefc5a3bf | |
| parent | 7bdb082c91727b8ba90981051a81228db83bc20d (diff) | |
| parent | 6d2df9bf9400acd6716a2a3c0b5c02f7973cc43c (diff) | |
Merge pull request #158 from grissiom/finsh-fix
finsh: unregister rx_indicate when closing the device
| -rw-r--r-- | components/finsh/shell.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/finsh/shell.c b/components/finsh/shell.c index 19dd93691e..8ff0e89e44 100644 --- a/components/finsh/shell.c +++ b/components/finsh/shell.c @@ -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; |
