mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #6772 from ARMmbed/g-littlefs-eilseq
littlefs: Map LFS_ERR_CORRUPT to EILSEQpull/6991/head
commit
eb9435b52e
|
@ -35,6 +35,7 @@ static int lfs_toerror(int err)
|
|||
case LFS_ERR_INVAL: return -EINVAL;
|
||||
case LFS_ERR_NOSPC: return -ENOSPC;
|
||||
case LFS_ERR_NOMEM: return -ENOMEM;
|
||||
case LFS_ERR_CORRUPT: return -EILSEQ;
|
||||
default: return err;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue