Skip to content

Commit

Permalink
fix(core/embed): fix firmware invalidation
Browse files Browse the repository at this point in the history
[no changelog]
  • Loading branch information
cepetr committed Sep 24, 2024
1 parent dfd1757 commit ab96ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/embed/trezorhal/stm32f4/fwutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void firmware_invalidate_header(void) {

// erase start of the firmware (metadata) -> invalidate FW
ensure(flash_unlock_write(), NULL);
for (int i = 0; i < (1024 / FLASH_BLOCK_SIZE); i += FLASH_BLOCK_SIZE) {
for (int i = 0; i < (1024 / FLASH_BLOCK_SIZE); i++) {
flash_block_t data = {0};
ensure(flash_area_write_block(&FIRMWARE_AREA, i * FLASH_BLOCK_SIZE, data),
NULL);
Expand Down

0 comments on commit ab96ce7

Please sign in to comment.