Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b2e7338

Browse filesBrowse files
authored
SD library: Fix format (#9034)
Pass correct work buffer size to f_mkfs
1 parent 4d469c8 commit b2e7338
Copy full SHA for b2e7338

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎libraries/SD/src/sd_diskio.cpp

Copy file name to clipboardExpand all lines: libraries/SD/src/sd_diskio.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ bool sdcard_mount(uint8_t pdrv, const char* path, uint8_t max_files, bool format
818818
}
819819
//FRESULT f_mkfs (const TCHAR* path, const MKFS_PARM* opt, void* work, UINT len);
820820
const MKFS_PARM opt = {(BYTE)FM_ANY, 0, 0, 0, 0};
821-
res = f_mkfs(drv, &opt, work, sizeof(work));
821+
res = f_mkfs(drv, &opt, work, sizeof(BYTE) * FF_MAX_SS);
822822
free(work);
823823
if (res != FR_OK) {
824824
log_e("f_mkfs failed: %s", fferr2str[res]);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.