mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 14:28:07 +00:00
fix(core/bootloader): fix detection of installed firmware
[no changelog]
This commit is contained in:
parent
3b64e94e18
commit
461f566777
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user