parent
4d469c8f86
commit
b2e7338a5e
1 changed files with 1 additions and 1 deletions
|
|
@ -818,7 +818,7 @@ bool sdcard_mount(uint8_t pdrv, const char* path, uint8_t max_files, bool format
|
||||||
}
|
}
|
||||||
//FRESULT f_mkfs (const TCHAR* path, const MKFS_PARM* opt, void* work, UINT len);
|
//FRESULT f_mkfs (const TCHAR* path, const MKFS_PARM* opt, void* work, UINT len);
|
||||||
const MKFS_PARM opt = {(BYTE)FM_ANY, 0, 0, 0, 0};
|
const MKFS_PARM opt = {(BYTE)FM_ANY, 0, 0, 0, 0};
|
||||||
res = f_mkfs(drv, &opt, work, sizeof(work));
|
res = f_mkfs(drv, &opt, work, sizeof(BYTE) * FF_MAX_SS);
|
||||||
free(work);
|
free(work);
|
||||||
if (res != FR_OK) {
|
if (res != FR_OK) {
|
||||||
log_e("f_mkfs failed: %s", fferr2str[res]);
|
log_e("f_mkfs failed: %s", fferr2str[res]);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue