mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-28 04:27:07 +08:00
[Finsh] fix the '\r' issue in linux telnet.
This commit is contained in:
parent
e5edc5b09a
commit
c2b5cd1e85
@ -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';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user