From f1eb05c53ddd4a571e11ef9493c67d024b9cac5a Mon Sep 17 00:00:00 2001 From: cfif Date: Thu, 18 Dec 2025 14:23:30 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CommandLines.c | 6 +++--- CommandLines.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CommandLines.c b/CommandLines.c index c49472f..5724e45 100644 --- a/CommandLines.c +++ b/CommandLines.c @@ -36,9 +36,9 @@ void CommandLine_Init(tCommandLine *env, tSerialPortIO *cliVirtualPortIn_Io, tSe CliCmd_InitStatic(&env->cmd, cliVirtualPortIn_Io, cliVirtualPortOut_Io, env->mem.cmdRxLine); CliRedirectionTable_InitStatic(&env->redirectTable, env->mem.commandPrefixes); - CliRedirectionTable_RecAddStatic(&env->redirectTable, "help", (cliCall) CliCmd_baseCommandHelp, NULL); - CliRedirectionTable_RecAddStatic(&env->redirectTable, "mem", (cliCall) vTaskGetRunTime, NULL); - CliRedirectionTable_RecAddStatic(&env->redirectTable, "reboot", (cliCall) CliCmd_baseCommandReboot, NULL); + CliRedirectionTable_RecAddStatic(&env->redirectTable, "help", CliCmd_baseCommandHelp, NULL); + CliRedirectionTable_RecAddStatic(&env->redirectTable, "mem", vTaskGetRunTime, NULL); + CliRedirectionTable_RecAddStatic(&env->redirectTable, "reboot", CliCmd_baseCommandReboot, NULL); InitThreadAtrStatic(&env->thread.attr, "CommandLine", env->thread.controlBlock, env->thread.stack, osPriorityNormal); diff --git a/CommandLines.h b/CommandLines.h index 7814d43..8993dbe 100644 --- a/CommandLines.h +++ b/CommandLines.h @@ -30,7 +30,7 @@ typedef struct { } tCommandLine; -void vTaskGetRunTime(void *env, tCliCmd *cli); +int32_t vTaskGetRunTime(void *env, tCliCmd *cli); void CommandLine_Init(tCommandLine *env, tSerialPortIO *cliVirtualPortIn_Io, tSerialPortIO *cliVirtualPortOut_Io); void CommandLine_StartThread(tCommandLine *env);