fs/nxffs: Fix scan good block slowly and scan an invalid block
This commit is contained in:
parent
822061a3d0
commit
97be116a39
1 changed files with 5 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue