mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pkg/fatfs: ensure volume is initialized before formatting
This commit is contained in:
parent
93cd0bcc57
commit
2aa41b1a44
@ -87,6 +87,11 @@ static int _format(vfs_mount_t *mountp)
|
||||
}
|
||||
#endif
|
||||
|
||||
/* make sure the volume has been initialized */
|
||||
if (_init(mountp)) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
const MKFS_PARM param = {
|
||||
.fmt = CONFIG_FATFS_FORMAT_TYPE,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user