mirror of
https://github.com/eledio-devices/thirdparty-littlefs.git
synced 2025-11-01 00:38:29 +01:00
WIP Added/fixed tests for noop writes (where bd error can't be trusted)
This commit is contained in:
6
lfs.c
6
lfs.c
@@ -1300,9 +1300,9 @@ static int lfs_dir_commitcrc(lfs_t *lfs, struct lfs_commit *commit) {
|
||||
// check against written crc to detect if block is readonly
|
||||
// (we may pick up old commits)
|
||||
// TODO rm me?
|
||||
// if (i == noff && crc != ncrc) {
|
||||
// return LFS_ERR_CORRUPT;
|
||||
// }
|
||||
if (i == noff && crc != ncrc) {
|
||||
return LFS_ERR_CORRUPT;
|
||||
}
|
||||
|
||||
crc = lfs_crc(crc, &dat, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user