From c2b5cd1e85b11f25e3707a4e5f0ea3ca93ed48ae Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Mon, 12 Oct 2015 10:52:14 +0800 Subject: [PATCH] [Finsh] fix the '\r' issue in linux telnet. --- 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 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';