Fix erase sector
This commit is contained in:
parent
692aa6e2f0
commit
98126ce83b
2
ee.c
2
ee.c
|
@ -189,7 +189,7 @@ bool ee_format(bool keepRamData)
|
|||
FLASH_EraseInitTypeDef flashErase;
|
||||
#if _EE_PAGE_OR_SECTOR == PAGE
|
||||
flashErase.NbPages = 1;
|
||||
flashErase.PageAddress = _EE_USE_FLASH_PAGE_OR_SECTOR;
|
||||
flashErase.PageAddress = _EE_ADDR_INUSE;
|
||||
flashErase.TypeErase = FLASH_TYPEERASE_PAGES;
|
||||
#elif _EE_PAGE_OR_SECTOR == SECTOR
|
||||
flashErase.NbSectors = 1;
|
||||
|
|
Loading…
Reference in New Issue
Block a user