version command prepared - new os interface needed (print to shell)

This commit is contained in:
tkl 2016-08-21 13:47:57 +02:00
parent 9ef624b52f
commit fefe986c40

View File

@ -22,7 +22,7 @@ static void *drive_forward_cb(const char *param);
static void *drive_backward_cb(const char *param);
static void *app_version(const char *param);
static struct command drive_forward = {
static struct command cmd_app_version = {
.command = "version",
.description = "Get application version.",
.command_callback = app_version,
@ -79,6 +79,7 @@ int shell_commands_init(void)
shell_add_command(&drive_halt);
shell_add_command(&drive_turn_left);
shell_add_command(&drive_turn_right);
shell_add_command(&cmd_app_version);
return 0;
}