From c81d6d1c18afcc3a032f7f59e8bd9eb8a6ac0314 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=88=E6=96=87=E8=87=A3?= Date: Wed, 28 Nov 2018 20:44:35 +0800 Subject: [PATCH] =?UTF-8?q?sector=5Fmagic=E5=8F=98=E9=87=8F=E6=98=AF?= =?UTF-8?q?=E4=B8=8A=E4=B8=AA=E7=89=88=E6=9C=AC=E7=9A=84=EF=BC=8C=E8=AF=A5?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=BA=94=E8=AF=A5=E4=BD=BF=E7=94=A8sector=5F?= =?UTF-8?q?header=5Fmagic=EF=BC=8C=E5=90=A6=E5=88=99=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- easyflash/src/ef_log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easyflash/src/ef_log.c b/easyflash/src/ef_log.c index 0febb9c..781549e 100644 --- a/easyflash/src/ef_log.c +++ b/easyflash/src/ef_log.c @@ -132,7 +132,7 @@ static SectorStatus get_sector_status(uint32_t addr) { } /* compare header magic code */ - if(sector_magic == LOG_SECTOR_MAGIC){ + if(sector_header_magic == LOG_SECTOR_MAGIC){ if((status_use_magic == SECTOR_STATUS_MAGIC_EMPUT) && (status_full_magic == SECTOR_STATUS_MAGIC_EMPUT)) { return SECTOR_STATUS_EMPUT; } else if((status_use_magic == SECTOR_STATUS_MAGIC_USING) && (status_full_magic == SECTOR_STATUS_MAGIC_EMPUT)) {