Attempt to fix command paring error

This commit is contained in:
2026-03-27 14:53:13 +01:00
parent 992b76cbd2
commit 1d7586129d
2 changed files with 10 additions and 1 deletions

View File

@@ -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() {

View File

@@ -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: