fs/nxffs: Fix scan good block slowly and scan an invalid block

This commit is contained in:
Dong Heng 2020-07-17 16:34:38 +08:00 committed by Alan Carvalho de Assis
parent 822061a3d0
commit 97be116a39

View File

@ -495,7 +495,11 @@ int nxffs_limits(FAR struct nxffs_volume_s *volume)
} }
else else
{ {
offset += nerased + 1; volume->ioblock += 1;
volume->iooffset = SIZEOF_NXFFS_BLOCK_HDR;
offset = volume->ioblock * volume->geo.blocksize +
volume->iooffset;
nerased = 0; nerased = 0;
} }
} }