summaryrefslogtreecommitdiffstatshomepage
path: root/lib/fatfs/diskio.c
diff options
context:
space:
mode:
authorDaniel Campora <daniel@wipy.io>2015-03-27 12:17:12 +0100
committerDamien George <damien.p.george@gmail.com>2015-03-29 22:12:14 +0100
commit7b19e99edd2ca5d60154ffaa6007c936f274a15a (patch)
treed8850b49750f417d119450c9dd4084e71837959f /lib/fatfs/diskio.c
parent64e8b622917156bfe3a7ca3698072188be1ab862 (diff)
downloadmicropython-7b19e99edd2ca5d60154ffaa6007c936f274a15a.tar.gz
micropython-7b19e99edd2ca5d60154ffaa6007c936f274a15a.zip
lib: Update FatFs to R0.11.
There are lots of cosmetic changes, but this release brings a very important bug fix: - Fixed f_unlink() does not remove cluster chain of the file. With R0.10c if you try to write a file that is too large to fit in the free space of the drive, the operation fails, you delete the incomplete file, and it seems to be erased, but the space is not really freed, because any subsequent write operations fail because the drive is "still" full. The only way to recover from this is by formatting the drive. I can confirm that R0.11 fixes the problem.
Diffstat (limited to 'lib/fatfs/diskio.c')
-rw-r--r--lib/fatfs/diskio.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/fatfs/diskio.c b/lib/fatfs/diskio.c
index 169ae95ead..82200ad0fa 100644
--- a/lib/fatfs/diskio.c
+++ b/lib/fatfs/diskio.c
@@ -8,14 +8,14 @@
/*-----------------------------------------------------------------------*/
#include "diskio.h" /* FatFs lower layer API */
-#include "usbdisk.h" /* Example: USB drive control */
-#include "atadrive.h" /* Example: ATA drive control */
-#include "sdcard.h" /* Example: MMC/SDC contorl */
+#include "usbdisk.h" /* Example: Header file of existing USB MSD control module */
+#include "atadrive.h" /* Example: Header file of existing ATA harddisk control module */
+#include "sdcard.h" /* Example: Header file of existing MMC/SDC contorl module */
/* Definitions of physical drive number for each drive */
-#define ATA 0 /* Example: Map ATA drive to drive number 0 */
-#define MMC 1 /* Example: Map MMC/SD card to drive number 1 */
-#define USB 2 /* Example: Map USB drive to drive number 2 */
+#define ATA 0 /* Example: Map ATA harddisk to physical drive 0 */
+#define MMC 1 /* Example: Map MMC/SD card to physical drive 1 */
+#define USB 2 /* Example: Map USB MSD to physical drive 2 */
/*-----------------------------------------------------------------------*/