mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-20 12:21:01 +00:00
fix(core/prodtest): fix BOOTLOADER VERSION command
This commit is contained in:
parent
01cf58f2a1
commit
46eebd23a4
1
core/embed/projects/prodtest/.changelog.d/4405.fixed
Normal file
1
core/embed/projects/prodtest/.changelog.d/4405.fixed
Normal file
@ -0,0 +1 @@
|
||||
Fix BOOTLOADER VERSION command
|
@ -302,7 +302,7 @@ The command returns `OK` followed by the version in the format `<major>.<minor>.
|
||||
|
||||
Example:
|
||||
```
|
||||
BOOTLOADER_VERSION
|
||||
BOOTLOADER VERSION
|
||||
OK 2.1.7
|
||||
```
|
||||
|
||||
@ -312,7 +312,7 @@ The command returns `OK` followed by the version in the format `<major>.<minor>.
|
||||
|
||||
Example:
|
||||
```
|
||||
FIRMWARE VERSION
|
||||
BOARDLOADER VERSION
|
||||
OK 0.2.6
|
||||
```
|
||||
|
||||
|
@ -662,8 +662,9 @@ static uint32_t read_bootloader_version(void) {
|
||||
|
||||
mpu_mode_t mpu_mode = mpu_reconfig(MPU_MODE_BOOTUPDATE);
|
||||
|
||||
const image_header *header = read_image_header(
|
||||
(const uint8_t *)BOOTLOADER_START, BOOTLOADER_MAXSIZE, 0xffffffff);
|
||||
const image_header *header =
|
||||
read_image_header((const uint8_t *)BOOTLOADER_START,
|
||||
BOOTLOADER_IMAGE_MAGIC, BOOTLOADER_MAXSIZE);
|
||||
|
||||
if (header != NULL) {
|
||||
version = header->version;
|
||||
|
Loading…
Reference in New Issue
Block a user