diff --git a/components/finsh/shell.c b/components/finsh/shell.c index ce80e4dec21fbe09f3c581cee7c0c4f6b41e26a4..8962a7333f7a682acee9003af71e8cd31fae9e31 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';