Skip to content

Commit

Permalink
fix for different FAT versions
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Jan 30, 2025
1 parent 333f45c commit 60b1f4b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libs/filesystem/jswrap_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,11 @@ bool jswrap_fs_mkfs() {
jswrap_file_kill_sw();
// Reformat
uint8_t workBuffer[FF_MAX_SS];
#if _FATFS==80376
res = f_mkfs("", 0, 0); // R0.10 args format (FDISK format, auto alloc size)
#else
res = f_mkfs("", NULL, workBuffer, sizeof(workBuffer));
#endif
if (res) {
jsfsReportError("mkfs error", res);
return false;
Expand Down

0 comments on commit 60b1f4b

Please sign in to comment.