[Components][Finsh] Add shell getchar received error process.

This commit is contained in:
armink 2018-02-23 15:24:27 +08:00
parent d4dcbe0cb1
commit 013e5bd411
1 changed files with 2 additions and 2 deletions

View File

@ -541,8 +541,8 @@ void finsh_thread_entry(void *parameter)
}
}
/* handle CR key */
if (ch == '\0') continue;
/* received null or error */
if (ch == '\0' || ch == 0xFF) continue;
/* handle tab key */
else if (ch == '\t')
{