From 107a9c300c702a5c65d9ab1e5e7d0ffefe3ca58f Mon Sep 17 00:00:00 2001 From: LTreeshu <49595325+LTreeshu@users.noreply.github.com> Date: Wed, 23 Apr 2025 14:37:37 +0800 Subject: [PATCH] Update shell.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To enhance the robustness of key recognition and solve the problem of errors and omissions caused by the lag of state assignment statement 增强方向键识别的鲁棒性,解决状态赋值语句滞后带来的错漏问题 --- components/finsh/shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/finsh/shell.c b/components/finsh/shell.c index 1c7c22e3363..2b9349364c5 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;