1
0
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:
Letter 2019-10-11 10:43:53 +08:00
parent 35f319a4f0
commit 85d200ca1a

View File

@ -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;
}
}