From 081382199bfe6f61930d98c7d918ed724f917d2a Mon Sep 17 00:00:00 2001 From: Letter Date: Tue, 8 Jan 2019 19:46:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8C=B9=E9=85=8D=E5=88=B0?= =?UTF-8?q?=E5=A4=9A=E4=B8=AA=E5=91=BD=E4=BB=A4=E6=97=B6=EF=BC=8C=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=B8=8D=E6=AD=A3=E7=A1=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shell.c b/shell.c index 475a10f..02fd77b 100644 --- a/shell.c +++ b/shell.c @@ -44,7 +44,7 @@ void shellInit(SHELL_TypeDef *shell) { shellDisplay(shell, "\r\n\r\n"); shellDisplay(shell, "+=========================================================+\r\n"); - shellDisplay(shell, "| (C) COPYRIGHT 2018 Unilink |\r\n"); + shellDisplay(shell, "| (C) COPYRIGHT 2018 Letter |\r\n"); shellDisplay(shell, "| Letter shell v"SHELL_VERSION" |\r\n"); shellDisplay(shell, "| Build: "__DATE__" "__TIME__" |\r\n"); shellDisplay(shell, "+=========================================================+\r\n"); @@ -78,7 +78,7 @@ void shellInit(SHELL_TypeDef *shell) * @param base 命令表基址 * @param size 命令数量 * - * @note 此接口不可再shellInit之前调用 + * @note 此接口不可在shellInit之前调用 * @note 不调用此接口,则使用默认命令表或命令导出形成的命令表(取决于命令定义方式) */ void shellSetCommandList(SHELL_TypeDef *shell, SHELL_CommandTypeDef *base, unsigned short size) @@ -456,6 +456,7 @@ static void shellTab(SHELL_TypeDef *shell) { shell->length = maxMatch; } + shell->buffer[shell->length] = 0; shell->cursor = shell->length; shellDisplay(shell, shell->buffer); }