mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-08 00:14:36 +08:00
[DFS] fix the mkfs issue for multi-mounted fatfs
This commit is contained in:
parent
46acbb8dc5
commit
8baf3d98e1
@ -269,6 +269,10 @@ int dfs_elm_mkfs(rt_device_t dev_id)
|
|||||||
f_mount(fat, logic_nbr, (BYTE)index);
|
f_mount(fat, logic_nbr, (BYTE)index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
logic_nbr[0] = '0' + index;
|
||||||
|
}
|
||||||
|
|
||||||
/* [IN] Logical drive number */
|
/* [IN] Logical drive number */
|
||||||
/* [IN] Format options */
|
/* [IN] Format options */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user