Merge pull request #1228 from armink/fix_shell

[Components][Finsh] Add shell getchar received error process.
This commit is contained in:
Bernard Xiong 2018-02-24 08:53:11 +08:00 committed by GitHub
commit 3a7d989d7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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')
{