mtd/nand: Correct the check of erasing bad blocks
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
c1680d2f03
commit
25a1191763
@ -355,7 +355,7 @@ static int nand_eraseblock(FAR struct nand_dev_s *nand, off_t block,
|
|||||||
DEBUGASSERT(nand && nand->raw);
|
DEBUGASSERT(nand && nand->raw);
|
||||||
|
|
||||||
#ifdef CONFIG_MTD_NAND_BLOCKCHECK
|
#ifdef CONFIG_MTD_NAND_BLOCKCHECK
|
||||||
if (scrub)
|
if (!scrub)
|
||||||
{
|
{
|
||||||
/* Check block status */
|
/* Check block status */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user