mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2025-12-06 03:31:59 +01:00
store version as separate string
This commit is contained in:
parent
c8e1dbcbdd
commit
28614dbb4a
4
main.c
4
main.c
|
|
@ -1667,11 +1667,13 @@ static void cmd_stat(BaseSequentialStream *chp, int argc, char *argv[])
|
||||||
#define VERSION "unknown"
|
#define VERSION "unknown"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
const char NANOVNA_VERSION[] = VERSION;
|
||||||
|
|
||||||
static void cmd_version(BaseSequentialStream *chp, int argc, char *argv[])
|
static void cmd_version(BaseSequentialStream *chp, int argc, char *argv[])
|
||||||
{
|
{
|
||||||
(void)argc;
|
(void)argc;
|
||||||
(void)argv;
|
(void)argv;
|
||||||
chprintf(chp, VERSION "\r\n");
|
chprintf(chp, "%s\r\n", NANOVNA_VERSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define SHELL_WA_SIZE THD_WORKING_AREA_SIZE(256)
|
#define SHELL_WA_SIZE THD_WORKING_AREA_SIZE(256)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue