提交 c2b5cd1e 编写于 作者: B Bernard Xiong

[Finsh] fix the '\r' issue in linux telnet.

上级 e5edc5b0
...@@ -425,7 +425,7 @@ void finsh_thread_entry(void *parameter) ...@@ -425,7 +425,7 @@ void finsh_thread_entry(void *parameter)
if (rt_device_read(shell->device, 0, &next, 1) == 1) 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 = next;
} }
else ch = '\r'; else ch = '\r';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册