mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #14137 from rajkan01/fix_fatfilesytem_unmount
Storage: Fix FATFileSystem unmount issuepull/14092/head
commit
aeabb9382b
|
@ -330,6 +330,11 @@ int FATFileSystem::unmount()
|
|||
}
|
||||
|
||||
FRESULT res = f_mount(NULL, _fsid, 0);
|
||||
int err = _ffs[_id]->deinit();
|
||||
if (err) {
|
||||
unlock();
|
||||
return err;
|
||||
}
|
||||
_ffs[_id] = NULL;
|
||||
_id = -1;
|
||||
unlock();
|
||||
|
|
Loading…
Reference in New Issue