1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-16 04:29:08 +00:00

Rename flash_erase_sector() to flash_erase() to resolve name collision with libopencm3 in trezor-mcu.

This commit is contained in:
andrew 2019-01-28 16:24:48 +01:00
parent 65fdd53427
commit fc29df6f87

View File

@ -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.