summaryrefslogtreecommitdiff
path: root/lib/fatfs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fatfs')
-rw-r--r--lib/fatfs/ffconf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/fatfs/ffconf.h b/lib/fatfs/ffconf.h
index 27e73e2b3..7bfb03add 100644
--- a/lib/fatfs/ffconf.h
+++ b/lib/fatfs/ffconf.h
@@ -217,7 +217,11 @@
#define _MIN_SS 512
+#ifdef MICROPY_FATFS_MAX_SS
+#define _MAX_SS (MICROPY_FATFS_MAX_SS)
+#else
#define _MAX_SS 512
+#endif
/* These options configure the range of sector size to be supported. (512, 1024,
/ 2048 or 4096) Always set both 512 for most systems, all type of memory cards and
/ harddisk. But a larger value may be required for on-board flash memory and some