mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-03 03:50:58 +00:00
Bug fix: missing parenthesis in flash_write_word
This commit is contained in:
parent
20a1326ebb
commit
816bfe387f
@ -134,7 +134,7 @@ secbool flash_read_word_rel(uint8_t sector, uint32_t offset, uint32_t *data)
|
|||||||
if (offset % 4 != 0) {
|
if (offset % 4 != 0) {
|
||||||
return secfalse;
|
return secfalse;
|
||||||
}
|
}
|
||||||
*data = *((const uint32_t *)FLASH_SECTOR_TABLE[sector] + offset);
|
*data = *((const uint32_t *) (FLASH_SECTOR_TABLE[sector] + offset));
|
||||||
return sectrue;
|
return sectrue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user