mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-23 15:08:19 +00:00
feat(core/prodtest): report build version in prodtest intro and version
This commit is contained in:
parent
13a576c556
commit
e4a31ab0e3
1
core/embed/projects/prodtest/.changelog.d/5050.changed
Normal file
1
core/embed/projects/prodtest/.changelog.d/5050.changed
Normal file
@ -0,0 +1 @@
|
||||
Report build version in prodtest intro and version command.
|
@ -564,12 +564,12 @@ OK 1 2 3 5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
|
||||
|
||||
### prodtest-version
|
||||
Retrieves the version of the prodtest firmware.
|
||||
The command returns `OK` followed by the version in the format `<major>.<minor>.<patch>`.
|
||||
The command returns `OK` followed by the version in the format `<major>.<minor>.<patch>.<build>`.
|
||||
|
||||
Example:
|
||||
```
|
||||
prodtest-version
|
||||
OK 0.2.6
|
||||
OK 0.2.6.1
|
||||
```
|
||||
|
||||
### prodtest-wipe
|
||||
|
@ -31,8 +31,9 @@
|
||||
#include <version.h>
|
||||
|
||||
static void prodtest_prodtest_intro(cli_t* cli) {
|
||||
cli_trace(cli, "Welcome to Trezor %s Production Test Firmware v%d.%d.%d.",
|
||||
MODEL_NAME, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH);
|
||||
cli_trace(cli, "Welcome to Trezor %s Production Test Firmware v%d.%d.%d.%d.",
|
||||
MODEL_NAME, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH,
|
||||
VERSION_BUILD);
|
||||
cli_trace(cli, "");
|
||||
cli_trace(cli, "Type 'help' to view all available commands.");
|
||||
cli_trace(cli, "");
|
||||
@ -44,7 +45,8 @@ static void prodtest_prodtest_version(cli_t* cli) {
|
||||
return;
|
||||
}
|
||||
|
||||
cli_ok(cli, "%d.%d.%d", VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH);
|
||||
cli_ok(cli, "%d.%d.%d.%d", VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH,
|
||||
VERSION_BUILD);
|
||||
}
|
||||
|
||||
static void prodtest_prodtest_wipe(cli_t* cli) {
|
||||
|
Loading…
Reference in New Issue
Block a user