X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=ao_cmd.c;h=827545d0ee8842a94ed41fb376e1d0da38cc0de9;hp=f0459a73fd4976b17b6077328d2c2b2c8ea13516;hb=d3dbd8949e1102220ad5fd0863f493c819b96e46;hpb=de7814c738488c2c16c6216c93fa78128895e5d5 diff --git a/ao_cmd.c b/ao_cmd.c index f0459a73..827545d0 100644 --- a/ao_cmd.c +++ b/ao_cmd.c @@ -212,6 +212,15 @@ echo(void) lex_echo = ao_cmd_lex_i != 0; } +static void +version(void) +{ + printf("manufacturer %s\n", ao_manufacturer); + printf("product %s\n", ao_product); + printf("serial-number %u\n", ao_serial_number); + printf("software-version %s\n", ao_version); +} + static const char help_txt[] = "All numbers are in hex"; #define NUM_CMDS 11 @@ -297,6 +306,7 @@ __code struct ao_cmds ao_base_cmds[] = { { 'T', ao_task_info, "T Show task states" }, { 'E', echo, "E <0 off, 1 on> Set command echo mode" }, { 'd', dump, "d Dump memory" }, + { 'v', version, "v Show version" }, { 0, help, NULL }, };