version command prepared - new os interface needed (print to shell)
This commit is contained in:
parent
9ef624b52f
commit
fefe986c40
@ -22,7 +22,7 @@ static void *drive_forward_cb(const char *param);
|
|||||||
static void *drive_backward_cb(const char *param);
|
static void *drive_backward_cb(const char *param);
|
||||||
static void *app_version(const char *param);
|
static void *app_version(const char *param);
|
||||||
|
|
||||||
static struct command drive_forward = {
|
static struct command cmd_app_version = {
|
||||||
.command = "version",
|
.command = "version",
|
||||||
.description = "Get application version.",
|
.description = "Get application version.",
|
||||||
.command_callback = app_version,
|
.command_callback = app_version,
|
||||||
@ -79,6 +79,7 @@ int shell_commands_init(void)
|
|||||||
shell_add_command(&drive_halt);
|
shell_add_command(&drive_halt);
|
||||||
shell_add_command(&drive_turn_left);
|
shell_add_command(&drive_turn_left);
|
||||||
shell_add_command(&drive_turn_right);
|
shell_add_command(&drive_turn_right);
|
||||||
|
shell_add_command(&cmd_app_version);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user