summaryrefslogtreecommitdiffstats
path: root/src/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/console.c')
-rw-r--r--src/console.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/console.c b/src/console.c
index 3206903..7098f36 100644
--- a/src/console.c
+++ b/src/console.c
@@ -46,8 +46,13 @@ void cmd_help(char *line)
void cmd_info(char *line)
{
+ char *p, str[128];
get_sw_version();
- get_hw_revision(); // get hardware revision:
+ get_hw_revision(str, 128); // get hardware revision:
+ p = strstr(str, "hw_rev:");
+ if (p) // TODO: delimit string by comma
+ printf("SubVersionString autodetected: '%s'\n", p+7);
+ else printf("SubVersionString autodetected: (error)\n");
get_root_device(); // only for flashing
get_usb_mode();
get_rd_mode();