Example source code for MAXREFDES101.
Dependencies: max32630fthr Adafruit_FeatherOLED USBDevice
patches/filesystem.patch
- Committer:
- phonemacro
- Date:
- 2019-09-28
- Revision:
- 4:fd2b2de65af2
- Parent:
- 1:f60eafbf009a
File content as of revision 4:fd2b2de65af2:
diff --git a/features/filesystem/fat/ChaN/ffconf.h b/features/filesystem/fat/ChaN/ffconf.h
index 22e1294277..8eba16f9f3 100644
--- a/features/filesystem/fat/ChaN/ffconf.h
+++ b/features/filesystem/fat/ChaN/ffconf.h
@@ -288,8 +288,8 @@
/* #include <windows.h> // O/S definitions */
-#define FLUSH_ON_NEW_CLUSTER 0 /* Sync the file on every new cluster */
-#define FLUSH_ON_NEW_SECTOR 1 /* Sync the file on every new sector */
+#define FLUSH_ON_NEW_CLUSTER 1 /* Sync the file on every new cluster */
+#define FLUSH_ON_NEW_SECTOR 0 /* Sync the file on every new sector */
/* Only one of these two defines needs to be set to 1. If both are set to 0
the file is only sync when closed.
Clusters are group of sectors (eg: 8 sectors). Flushing on new cluster means