application: display build date and device ID

This commit is contained in:
King Kévin 2018-02-06 21:17:00 +01:00
parent dc096e932b
commit b885553c6c
1 changed files with 2 additions and 1 deletions

View File

@ -234,7 +234,8 @@ static void command_version(void* argument)
{
(void)argument; // we won't use the argument
printf("BusVoodoo board: %s\n", busvoodoo_full ? "full" : "light");
printf("firmware date: %s\n", __DATE__);
printf("firmware date: %04u-%02u-%02u\n", BUILD_YEAR, BUILD_MONTH, BUILD_DAY);
printf("board ID: %08x%08x%08x\n", DESIG_UNIQUE_ID0, DESIG_UNIQUE_ID1, DESIG_UNIQUE_ID2);
}
/** process user command