fs/nxffs: Fix scan good block slowly and scan an invalid block
This commit is contained in:
parent
822061a3d0
commit
97be116a39
@ -495,7 +495,11 @@ int nxffs_limits(FAR struct nxffs_volume_s *volume)
|
||||
}
|
||||
else
|
||||
{
|
||||
offset += nerased + 1;
|
||||
volume->ioblock += 1;
|
||||
volume->iooffset = SIZEOF_NXFFS_BLOCK_HDR;
|
||||
|
||||
offset = volume->ioblock * volume->geo.blocksize +
|
||||
volume->iooffset;
|
||||
nerased = 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user