Attempt to fix command paring error
This commit is contained in:
@@ -58,7 +58,6 @@ void setup() {
|
|||||||
driver_display->print_message("GPS Init Complete");
|
driver_display->print_message("GPS Init Complete");
|
||||||
delay(1000);
|
delay(1000);
|
||||||
router::send(MOD_LCD, TASK_DISPLAY_GPS_DEBUG);
|
router::send(MOD_LCD, TASK_DISPLAY_GPS_DEBUG);
|
||||||
router::send(MOD_CFG, TASK_CONFIG_TRACK_DETECT);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
|
|||||||
@@ -92,6 +92,11 @@ cmd::command_id cmd::parse_command_name(const char *input) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp(input, "CFG_RESET") == 0) {
|
if (strcmp(input, "CFG_RESET") == 0) {
|
||||||
|
#ifdef INFO
|
||||||
|
if (_logger != nullptr) {
|
||||||
|
_logger->info("Resetting config");
|
||||||
|
}
|
||||||
|
#endif
|
||||||
return CMD_CFG_RESET;
|
return CMD_CFG_RESET;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -269,6 +274,11 @@ int cmd::dispatch_command(command_id command, unsigned short argc, char *argv[])
|
|||||||
#endif
|
#endif
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
#ifdef INFO
|
||||||
|
if (_logger != nullptr) {
|
||||||
|
_logger->info("Resetting config");
|
||||||
|
}
|
||||||
|
#endif
|
||||||
return router::send(MOD_CFG, TASK_CONFIG_CFG_RESET);
|
return router::send(MOD_CFG, TASK_CONFIG_CFG_RESET);
|
||||||
|
|
||||||
case CMD_UNKNOWN:
|
case CMD_UNKNOWN:
|
||||||
|
|||||||
Reference in New Issue
Block a user