Skip to content

Commit a94953f

Browse files
committed
That was a silly mistake (Fixed -102)
1 parent 407774a commit a94953f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

source/fatfs/ffconf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
/ Locale and Namespace Configurations
8585
/---------------------------------------------------------------------------*/
8686

87-
#define FF_CODE_PAGE 932
87+
#define FF_CODE_PAGE 437
8888
/* This option specifies the OEM code page to be used on the target system.
8989
/ Incorrect code page setting can cause a file open failure.
9090
/

source/fs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ int NAND_GetFileSize(const char* filepath, size_t* size) {
3838
if (size)
3939
*size = 0;
4040

41-
int fd = ISFS_Open(filepath, 0);
41+
int fd = ISFS_Open(filepath, ISFS_OPEN_READ);
4242
if (fd < 0)
4343
return fd;
4444

0 commit comments

Comments
 (0)