1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 06:18:07 +00:00

fix(core/bootloader): fix detection of installed firmware

[no changelog]
This commit is contained in:
tychovrahe 2023-01-25 17:59:05 +01:00 committed by TychoVrahe
parent 3b64e94e18
commit 461f566777
2 changed files with 2 additions and 2 deletions

View File

@ -549,7 +549,7 @@ int process_msg_FirmwareUpload(uint8_t iface_num, uint32_t msg_size,
FIRMWARE_IMAGE_MAGIC, FIRMWARE_IMAGE_MAXSIZE); FIRMWARE_IMAGE_MAGIC, FIRMWARE_IMAGE_MAXSIZE);
if (current_hdr != if (current_hdr !=
(const image_header *)FIRMWARE_START + current_vhdr.hdrlen) { (const image_header *)(FIRMWARE_START + current_vhdr.hdrlen)) {
is_new = sectrue; is_new = sectrue;
} }
} }

View File

@ -546,7 +546,7 @@ int process_msg_FirmwareUpload(uint8_t iface_num, uint32_t msg_size,
FIRMWARE_IMAGE_MAGIC, FIRMWARE_IMAGE_MAXSIZE); FIRMWARE_IMAGE_MAGIC, FIRMWARE_IMAGE_MAXSIZE);
if (current_hdr != if (current_hdr !=
(const image_header *)FIRMWARE_START + current_vhdr.hdrlen) { (const image_header *)(FIRMWARE_START + current_vhdr.hdrlen)) {
is_new = sectrue; is_new = sectrue;
} }
} }