Skip to content

Commit

Permalink
SD library: Fix format (espressif#9124)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Jan 17, 2024
1 parent 7696dcc commit 5bf60b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/SD/src/sd_diskio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 5bf60b7

Please sign in to comment.