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

This commit is contained in:
Bernard Xiong 2015-10-12 10:52:14 +08:00
parent e5edc5b09a
commit c2b5cd1e85
1 changed files with 1 additions and 1 deletions

View File

@ -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';