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-09-30 07:59:01 +08:00
parent 72a14aa538
commit c9a1806a5c

View File

@ -315,6 +315,7 @@ static void shellDisplayByte(SHELL_TypeDef *shell, char data)
}
#if SHELL_USING_VAR == 1 || SHELL_DISPLAY_RETURN == 1
/**
* @brief shell显示值
*
@ -356,6 +357,7 @@ static void shellDisplayValue(SHELL_TypeDef *shell, int value)
shellDisplay(shell, str);
shellDisplay(shell, "\r\n");
}
#endif
#if SHELL_DISPLAY_RETURN == 1
@ -973,7 +975,7 @@ void shellTask(void *param)
int shellGetVariable(SHELL_TypeDef *shell, char *var)
{
SHELL_VaribaleTypeDef *base = shell->variableBase;
int value;
int value = 0;
if (var[0] == '$')
{