Unverified Commit 5bf60b74 authored by Jason2866's avatar Jason2866 Committed by GitHub

SD library: Fix format (#9124)

parent 7696dcc7
......@@ -809,7 +809,7 @@ bool sdcard_mount(uint8_t pdrv, const char* path, uint8_t max_files, bool format
log_e("alloc for f_mkfs failed");
return false;
}
res = f_mkfs(drv, FM_ANY, 0, work, sizeof(work));
res = f_mkfs(drv, FM_ANY, 0, work, sizeof(BYTE) * FF_MAX_SS);
free(work);
if (res != FR_OK) {
log_e("f_mkfs failed: %s", fferr2str[res]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment