From 2115ff1014f854fa52317c6ba5268f16b7eea9c5 Mon Sep 17 00:00:00 2001 From: sloan Date: Wed, 13 Oct 2021 05:37:21 +0000 Subject: [PATCH] =?UTF-8?q?update=20csi1/spiflash/spiflash=5Fdrv.c.=20flas?= =?UTF-8?q?h->info->block=5Fsize=20=E4=B8=8D=E5=AD=98=E5=9C=A8=EF=BC=8C?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E6=98=AF=20erased=5Fvalue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- csi1/spiflash/spiflash_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csi1/spiflash/spiflash_drv.c b/csi1/spiflash/spiflash_drv.c index c0dfc80..8717012 100755 --- a/csi1/spiflash/spiflash_drv.c +++ b/csi1/spiflash/spiflash_drv.c @@ -122,7 +122,7 @@ static int yoc_spiflash_erase(aos_dev_t *dev, int32_t addroff, int32_t sector_cn int i; /* check block erase support */ - if (flash->info->block_size) { + if (flash->info->erased_value) { ret = yoc_spiflash_block_erase(dev, addroff, sector_cnt); return ret; } -- Gitee