未验证 提交 3a7d989d 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #1228 from armink/fix_shell

[Components][Finsh] Add shell getchar received error process.
...@@ -541,8 +541,8 @@ void finsh_thread_entry(void *parameter) ...@@ -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')
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册