فهرست منبع

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

Bernard Xiong 9 سال پیش
والد
کامیت
c2b5cd1e85
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      components/finsh/shell.c

+ 1 - 1
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';