提交 8baf3d98 编写于 作者: B Bernard Xiong

[DFS] fix the mkfs issue for multi-mounted fatfs

上级 46acbb8d
...@@ -269,6 +269,10 @@ int dfs_elm_mkfs(rt_device_t dev_id) ...@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册