From fefe986c40b4aa33721561745f254942661df3ce Mon Sep 17 00:00:00 2001 From: tkl Date: Sun, 21 Aug 2016 13:47:57 +0200 Subject: [PATCH] version command prepared - new os interface needed (print to shell) --- source/application/shell_commands.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/application/shell_commands.c b/source/application/shell_commands.c index 04f627b..0cb89f8 100644 --- a/source/application/shell_commands.c +++ b/source/application/shell_commands.c @@ -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; }