1
0
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:
Jochen Hoenicke 2017-12-12 00:01:49 +01:00
parent 20a1326ebb
commit 816bfe387f

View File

@ -134,7 +134,7 @@ secbool flash_read_word_rel(uint8_t sector, uint32_t offset, uint32_t *data)
if (offset % 4 != 0) {
return secfalse;
}
*data = *((const uint32_t *)FLASH_SECTOR_TABLE[sector] + offset);
*data = *((const uint32_t *) (FLASH_SECTOR_TABLE[sector] + offset));
return sectrue;
}