Skip to content

Commit c2b5cd1

Browse files
committed
[Finsh] fix the '\r' issue in linux telnet.
1 parent e5edc5b commit c2b5cd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/finsh/shell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ void finsh_thread_entry(void *parameter)
425425

426426
if (rt_device_read(shell->device, 0, &next, 1) == 1)
427427
{
428-
if (next == '\0') ch = 'r'; /* linux telnet will issue '\0' */
428+
if (next == '\0') ch = '\r'; /* linux telnet will issue '\0' */
429429
else ch = next;
430430
}
431431
else ch = '\r';

0 commit comments

Comments
 (0)