Merge pull request #15 from brendena/patch-1

Update ee.c
This commit is contained in:
Nima Askari ----- نیما عسکری 2022-07-06 10:31:27 +04:30 committed by GitHub
commit 692aa6e2f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
ee.c
View File

@ -189,7 +189,7 @@ bool ee_format(bool keepRamData)
FLASH_EraseInitTypeDef flashErase;
#if _EE_PAGE_OR_SECTOR == PAGE
flashErase.NbPages = 1;
flashErase.PageAddress = _EE_ADDR_INUSE;
flashErase.PageAddress = _EE_USE_FLASH_PAGE_OR_SECTOR;
flashErase.TypeErase = FLASH_TYPEERASE_PAGES;
#elif _EE_PAGE_OR_SECTOR == SECTOR
flashErase.NbSectors = 1;