Skip to content

Commit cd3789f

Browse files
LTreeshuRbb666
authored andcommitted
Update shell.c
To enhance the robustness of key recognition and solve the problem of errors and omissions caused by the lag of state assignment statement 增强方向键识别的鲁棒性,解决状态赋值语句滞后带来的错漏问题
1 parent 5e75fb0 commit cd3789f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/finsh/shell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ static void finsh_thread_entry(void *parameter)
535535
}
536536
else if (shell->stat == WAIT_SPEC_KEY)
537537
{
538-
if (ch == 0x5b)
538+
if (ch == 0x5b || ch == 0x41 || ch == 0x42 || ch == 0x43 || ch == 0x44)
539539
{
540540
shell->stat = WAIT_FUNC_KEY;
541541
continue;

0 commit comments

Comments
 (0)