Skip to content

Commit

Permalink
store version as separate string
Browse files Browse the repository at this point in the history
  • Loading branch information
edy555 committed Aug 18, 2019
1 parent c8e1dbc commit 28614db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1667,11 +1667,13 @@ static void cmd_stat(BaseSequentialStream *chp, int argc, char *argv[])
#define VERSION "unknown"
#endif

const char NANOVNA_VERSION[] = VERSION;

static void cmd_version(BaseSequentialStream *chp, int argc, char *argv[])
{
(void)argc;
(void)argv;
chprintf(chp, VERSION "\r\n");
chprintf(chp, "%s\r\n", NANOVNA_VERSION);
}

#define SHELL_WA_SIZE THD_WORKING_AREA_SIZE(256)
Expand Down

0 comments on commit 28614db

Please sign in to comment.