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 08:31:36 +08:00
parent c9a1806a5c
commit 35f319a4f0

View File

@ -87,7 +87,7 @@ void shellInit(SHELL_TypeDef *shell)
{
shellDisplay(shell, "\r\n\r\n");
shellDisplay(shell, "+=========================================================+\r\n");
shellDisplay(shell, "| (C) COPYRIGHT 2018 Letter |\r\n");
shellDisplay(shell, "| (C) COPYRIGHT 2019 Letter |\r\n");
shellDisplay(shell, "| Letter shell v"SHELL_VERSION" |\r\n");
shellDisplay(shell, "| Build: "__DATE__" "__TIME__" |\r\n");
shellDisplay(shell, "+=========================================================+\r\n");
@ -777,7 +777,10 @@ static void shellTab(SHELL_TypeDef *shell)
*/
static void shellNormal(SHELL_TypeDef *shell, char data)
{
if (data == 0)
{
return;
}
if (shell->length < SHELL_COMMAND_MAX_LENGTH - 1)
{
if (shell->length == shell->cursor)