diff --git a/ee.c b/ee.c index e804bae..f048343 100644 --- a/ee.c +++ b/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;