Merge pull request #1228 from armink/fix_shell
[Components][Finsh] Add shell getchar received error process.
This commit is contained in:
commit
3a7d989d7f
@ -541,8 +541,8 @@ void finsh_thread_entry(void *parameter)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* handle CR key */
|
/* received null or error */
|
||||||
if (ch == '\0') continue;
|
if (ch == '\0' || ch == 0xFF) continue;
|
||||||
/* handle tab key */
|
/* handle tab key */
|
||||||
else if (ch == '\t')
|
else if (ch == '\t')
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user