diff options
| author | LTreeshu <[email protected]> | 2025-04-23 14:37:37 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2025-05-21 13:24:36 +0800 |
| commit | cd3789f8ec69b50deac7c41ca9f4e4a849fb5996 (patch) | |
| tree | 5be44ea9364d68ce80a1b1c991b0cf2107060409 | |
| parent | 5e75fb0f4a4154dc1d62b81a70707e8abdebd5d1 (diff) | |
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
增强方向键识别的鲁棒性,解决状态赋值语句滞后带来的错漏问题
| -rw-r--r-- | components/finsh/shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/finsh/shell.c b/components/finsh/shell.c index 1c7c22e336..2b9349364c 100644 --- a/components/finsh/shell.c +++ b/components/finsh/shell.c @@ -535,7 +535,7 @@ static void finsh_thread_entry(void *parameter) } else if (shell->stat == WAIT_SPEC_KEY) { - if (ch == 0x5b) + if (ch == 0x5b || ch == 0x41 || ch == 0x42 || ch == 0x43 || ch == 0x44) { shell->stat = WAIT_FUNC_KEY; continue; |
