tbm-mcu/source/shell/version.c

18 lines
246 B
C
Raw Normal View History

2017-07-27 10:51:54 +02:00
#include <stdio.h>
#include <console.h>
#include <shell/version.h>
2017-07-27 11:54:31 +02:00
int shell_version(struct console *con, size_t argc, const char **argv)
2017-07-27 10:51:54 +02:00
{
(void)argv;
if (argc < 1)
2017-07-27 11:54:31 +02:00
return -1;
2017-07-27 10:51:54 +02:00
2017-07-27 12:15:44 +02:00
fprintf(con->fp, "hello %s\n", TBM_VERSION);
2017-07-27 11:54:31 +02:00
return 0;
2017-07-27 10:51:54 +02:00
}