summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2015-10-12 10:52:14 +0800
committerBernard Xiong <[email protected]>2015-10-12 10:52:14 +0800
commitc2b5cd1e85b11f25e3707a4e5f0ea3ca93ed48ae (patch)
treefeb72193d7929db22024ea213f9c721ea674f6ed /components
parente5edc5b09a6c66321114d3c417143c5bbe84df68 (diff)
[Finsh] fix the '\r' issue in linux telnet.
Diffstat (limited to 'components')
-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 ce80e4dec2..8962a7333f 100644
--- a/components/finsh/shell.c
+++ b/components/finsh/shell.c
@@ -425,7 +425,7 @@ void finsh_thread_entry(void *parameter)
if (rt_device_read(shell->device, 0, &next, 1) == 1)
{
- if (next == '\0') ch = 'r'; /* linux telnet will issue '\0' */
+ if (next == '\0') ch = '\r'; /* linux telnet will issue '\0' */
else ch = next;
}
else ch = '\r';