未验证 提交 889afa7b 编写于 作者: H HubretXie 提交者: GitHub

Update dfs_elm.c

fatfs: mkfs时增加FM_SFD参数,减少文件系统对flash空间的占用
上级 9757f6b4
......@@ -265,7 +265,7 @@ int dfs_elm_mkfs(rt_device_t dev_id)
/* [IN] Size of the allocation unit */
/* [-] Working buffer */
/* [IN] Size of working buffer */
result = f_mkfs(logic_nbr, FM_ANY, 0, work, _MAX_SS);
result = f_mkfs(logic_nbr, FM_ANY|FM_SFD, 0, work, _MAX_SS);
rt_free(work); work = RT_NULL;
/* check flag status, we need clear the temp driver stored in disk[] */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册