Skip to content

Commit

Permalink
fixup! refactor(core): make translations blob handling HW agnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
TychoVrahe committed Feb 20, 2024
1 parent 712ffc9 commit 92bc966
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/embed/lib/translations.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ bool translations_write(const uint8_t* data, uint32_t offset, uint32_t len) {

if (len % FLASH_BLOCK_SIZE) {
flash_block_t block = {0};
memset(block, 0xFF, FLASH_BLOCK_SIZE);
memcpy(block, data + (len / FLASH_BLOCK_SIZE) * FLASH_BLOCK_SIZE,
len % FLASH_BLOCK_SIZE);
ensure(flash_area_write_block(
Expand Down

0 comments on commit 92bc966

Please sign in to comment.