1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-03-27 13:35:44 +00:00

feat(core/prodtest): report build version in prodtest intro and version

This commit is contained in:
tychovrahe 2025-03-14 06:55:07 +01:00
parent 9992de430c
commit e1e0c6caa4

View File

@ -31,8 +31,9 @@
#include <version.h> #include <version.h>
static void prodtest_prodtest_intro(cli_t* cli) { static void prodtest_prodtest_intro(cli_t* cli) {
cli_trace(cli, "Welcome to Trezor %s Production Test Firmware v%d.%d.%d.", cli_trace(cli, "Welcome to Trezor %s Production Test Firmware v%d.%d.%d.%d.",
MODEL_NAME, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH); MODEL_NAME, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH,
VERSION_BUILD);
cli_trace(cli, ""); cli_trace(cli, "");
cli_trace(cli, "Type 'help' to view all available commands."); cli_trace(cli, "Type 'help' to view all available commands.");
cli_trace(cli, ""); cli_trace(cli, "");
@ -44,7 +45,8 @@ static void prodtest_prodtest_version(cli_t* cli) {
return; return;
} }
cli_ok(cli, "%d.%d.%d.%d", VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, VERSION_BUILD); cli_ok(cli, "%d.%d.%d.%d", VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH,
VERSION_BUILD);
} }
static void prodtest_prodtest_wipe(cli_t* cli) { static void prodtest_prodtest_wipe(cli_t* cli) {