From 1d7586129d4cf9f90cf660fe9c137ce2fb93058f Mon Sep 17 00:00:00 2001 From: Hector van der Aa Date: Fri, 27 Mar 2026 14:53:13 +0100 Subject: [PATCH] Attempt to fix command paring error --- src/main.cpp | 1 - src/modules/cmd/cmd.cpp | 10 ++++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 7f5b44d..d3e562e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -58,7 +58,6 @@ void setup() { driver_display->print_message("GPS Init Complete"); delay(1000); router::send(MOD_LCD, TASK_DISPLAY_GPS_DEBUG); - router::send(MOD_CFG, TASK_CONFIG_TRACK_DETECT); } void loop() { diff --git a/src/modules/cmd/cmd.cpp b/src/modules/cmd/cmd.cpp index 341f03a..34c29b3 100644 --- a/src/modules/cmd/cmd.cpp +++ b/src/modules/cmd/cmd.cpp @@ -92,6 +92,11 @@ cmd::command_id cmd::parse_command_name(const char *input) { } if (strcmp(input, "CFG_RESET") == 0) { + #ifdef INFO + if (_logger != nullptr) { + _logger->info("Resetting config"); + } + #endif return CMD_CFG_RESET; } @@ -269,6 +274,11 @@ int cmd::dispatch_command(command_id command, unsigned short argc, char *argv[]) #endif return 1; } + #ifdef INFO + if (_logger != nullptr) { + _logger->info("Resetting config"); + } + #endif return router::send(MOD_CFG, TASK_CONFIG_CFG_RESET); case CMD_UNKNOWN: