From 0bc92231f4f809401b7e0bf11fc3048c8627bb69 Mon Sep 17 00:00:00 2001 From: Peter Wittich Date: Tue, 26 Mar 2024 21:06:01 -0400 Subject: [PATCH] Bugfix/logcmd help (#217) * Fix help error messages in log command --- projects/cm_mcu/CommandLineTask.c | 4 +--- projects/cm_mcu/commands/SoftwareCommands.c | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/projects/cm_mcu/CommandLineTask.c b/projects/cm_mcu/CommandLineTask.c index 5c7d1068..bc66fe3f 100644 --- a/projects/cm_mcu/CommandLineTask.c +++ b/projects/cm_mcu/CommandLineTask.c @@ -14,8 +14,6 @@ #include "commands/SensorControl.h" #include "commands/SoftwareCommands.h" #include "common/smbus_units.h" -#include "common/printf.h" -#include "common/log.h" #include "Semaphore.h" static char m[SCRATCH_SIZE]; @@ -345,7 +343,7 @@ static struct command_t commands[] = { { "log", log_ctl, - "args: ( debug|toggle|info|warn|fatal|trace)(status|quiet)\r\nChange levels\r\n", + "args: ( FTL|ERR|WRN|INF|DBG|TRC)|dump|status|quiet\r\nConfigure log\r\n", -1, }, {"led", led_ctl, "Manipulate red LED\r\n", 1}, diff --git a/projects/cm_mcu/commands/SoftwareCommands.c b/projects/cm_mcu/commands/SoftwareCommands.c index 149e6679..a1545be9 100644 --- a/projects/cm_mcu/commands/SoftwareCommands.c +++ b/projects/cm_mcu/commands/SoftwareCommands.c @@ -1,8 +1,6 @@ -#include #include #include "commands/SoftwareCommands.h" -#include "FreeRTOS.h" #include "Tasks.h" #include "commands/parameters.h" #include "portmacro.h"