Merge pull request #1671 from RT-Thread/fix_mkfs

[DFS] fix the mkfs issue for multi-mounted fatfs
This commit is contained in:
Bernard Xiong 2018-07-28 18:04:05 +08:00 committed by GitHub
commit 2b09a02084
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -269,6 +269,10 @@ int dfs_elm_mkfs(rt_device_t dev_id)
f_mount(fat, logic_nbr, (BYTE)index);
}
}
else
{
logic_nbr[0] = '0' + index;
}
/* [IN] Logical drive number */
/* [IN] Format options */