From c8be90be0dbc39821e399210016ce0d48bb3bbbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nima=20Askari=20-----=20=D9=86=DB=8C=D9=85=D8=A7=20=D8=B9?= =?UTF-8?q?=D8=B3=DA=A9=D8=B1=DB=8C?= Date: Tue, 29 Nov 2022 11:50:13 +0330 Subject: [PATCH] Fix F4 erase --- ee.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ee.c b/ee.c index f048343..e5d7591 100644 --- a/ee.c +++ b/ee.c @@ -193,7 +193,7 @@ bool ee_format(bool keepRamData) flashErase.TypeErase = FLASH_TYPEERASE_PAGES; #elif _EE_PAGE_OR_SECTOR == SECTOR flashErase.NbSectors = 1; - flashErase.Sector = _EE_ADDR_INUSE; + flashErase.Sector = _EE_USE_FLASH_PAGE_OR_SECTOR; flashErase.TypeErase = FLASH_TYPEERASE_SECTORS; #elif _EE_PAGE_OR_SECTOR == PAGE_NUM flashErase.NbPages = 1;