Put build time in help

This commit is contained in:
whowechina 2024-05-18 14:15:25 +08:00
parent 56b52976e3
commit 7f97e8538f
2 changed files with 194 additions and 193 deletions

Binary file not shown.

View File

@ -59,7 +59,8 @@ int cli_match_prefix(const char *str[], int num, const char *prefix)
static void handle_help(int argc, char *argv[])
{
printf("%s", cli_logo);
printf("\tSN: %016llx\n\n", board_id_64());
printf("\tSN: %016llx\n", board_id_64());
printf("\tBuilt: %s %s\n\n", __DATE__, __TIME__);
printf("Available commands:\n");
for (int i = 0; i < num_commands; i++) {
printf("%*s: %s\n", max_cmd_len + 2, commands[i], helps[i]);