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: