mirror of
https://github.com/NevermindZZT/letter-shell.git
synced 2025-01-21 10:02:54 +08:00
Update shell.c
This commit is contained in:
parent
35f319a4f0
commit
85d200ca1a
8
shell.c
8
shell.c
@ -904,7 +904,9 @@ void shellHandler(SHELL_TypeDef *shell, char data)
|
||||
for (short i = 0; i < shell->keyFuncNumber; i++)
|
||||
{
|
||||
if (base[i].keyCode == data) {
|
||||
base[i].keyFunction(shell);
|
||||
if (base[i].keyFunction) {
|
||||
base[i].keyFunction(shell);
|
||||
}
|
||||
keyDefFind = 1;
|
||||
}
|
||||
}
|
||||
@ -915,7 +917,9 @@ void shellHandler(SHELL_TypeDef *shell, char data)
|
||||
i++)
|
||||
{
|
||||
if (shellDefaultKeyFunctionList[i].keyCode == data) {
|
||||
shellDefaultKeyFunctionList[i].keyFunction(shell);
|
||||
if (shellDefaultKeyFunctionList[i].keyFunction) {
|
||||
shellDefaultKeyFunctionList[i].keyFunction(shell);
|
||||
}
|
||||
keyDefFind = 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user