diff options
| author | Damien George <damien.p.george@gmail.com> | 2017-01-29 15:14:41 +1100 | 
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2017-01-30 12:07:40 +1100 | 
| commit | 28899cd9718e667f4af923789dc1d64d8fb7a263 (patch) | |
| tree | ddc3f76bfefba9b7e250f328f60aed9b006759bb /lib/oofatfs/ff.c | |
| parent | a5bed53738e8aedc3b4be39dc8f9dface6b0abbb (diff) | |
lib/oofatfs: Update oofatfs library.
From https://github.com/micropython/oofatfs, branch work-R0.12b,
commit 46fb53331e7a583c29a41d37ce4b53f2718597e5.
Diffstat (limited to 'lib/oofatfs/ff.c')
| -rw-r--r-- | lib/oofatfs/ff.c | 6 | 
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/oofatfs/ff.c b/lib/oofatfs/ff.c index 346f3df97..b0984756b 100644 --- a/lib/oofatfs/ff.c +++ b/lib/oofatfs/ff.c @@ -27,6 +27,8 @@  #include "ff.h"         /* Declarations of FatFs API */  #include "diskio.h"     /* Declarations of device I/O functions */ +// DIR has been renamed FF_DIR in the public API so it doesn't clash with POSIX +#define DIR FF_DIR  /*-------------------------------------------------------------------------- @@ -3104,7 +3106,7 @@ FRESULT f_mount (      fs->fs_type = 0;                    /* Clear new fs object */  #if _FS_REENTRANT                       /* Create sync object for the new volume */ -    if (!ff_cre_syncobj((BYTE)vol, &fs->sobj)) return FR_INT_ERR; +    if (!ff_cre_syncobj(fs, &fs->sobj)) return FR_INT_ERR;  #endif      res = find_volume(fs, 0);           /* Force mounted the volume */ @@ -3562,7 +3564,9 @@ FRESULT f_sync (      FATFS *fs;      DWORD tm;      BYTE *dir; +#if _FS_EXFAT      DEF_NAMBUF +#endif      res = validate(&fp->obj, &fs);  /* Check validity of the file object */  | 
