mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-17 03:48:09 +00:00
Rename flash_erase_sector() to flash_erase() to resolve name collision with libopencm3 in trezor-mcu.
This commit is contained in:
parent
65fdd53427
commit
fc29df6f87
2
norcow.c
2
norcow.c
@ -114,7 +114,7 @@ static void erase_sector(uint8_t sector, secbool set_magic)
|
||||
memcpy(header_backup, sector_start, sizeof(header_backup));
|
||||
#endif
|
||||
|
||||
ensure(flash_erase_sector(norcow_sectors[sector]), "erase failed");
|
||||
ensure(flash_erase(norcow_sectors[sector]), "erase failed");
|
||||
|
||||
#if NORCOW_HEADER_LEN > 0
|
||||
// Copy the sector header back.
|
||||
|
Loading…
Reference in New Issue
Block a user