Skip to content

Commit

Permalink
That was a silly mistake (Fixed -102)
Browse files Browse the repository at this point in the history
  • Loading branch information
Naim2000 committed Jun 17, 2024
1 parent 407774a commit a94953f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/fatfs/ffconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
/ Locale and Namespace Configurations
/---------------------------------------------------------------------------*/

#define FF_CODE_PAGE 932
#define FF_CODE_PAGE 437
/* This option specifies the OEM code page to be used on the target system.
/ Incorrect code page setting can cause a file open failure.
/
Expand Down
2 changes: 1 addition & 1 deletion source/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ int NAND_GetFileSize(const char* filepath, size_t* size) {
if (size)
*size = 0;

int fd = ISFS_Open(filepath, 0);
int fd = ISFS_Open(filepath, ISFS_OPEN_READ);
if (fd < 0)
return fd;

Expand Down

0 comments on commit a94953f

Please sign in to comment.