New feature: SDCARD_SORT_ALPHA

This commit is contained in:
Scott Lahteine committed 2017-02-14 21:37:24 -06:00
1 parent c04d6b5aa6
commit a561bd5e3a
24 files changed
+896 -8

No files matched your search

+13
View File
@@ -205,6 +205,19 @@
#endif
#endif
/**
* SD File Sorting
*/
#if ENABLED(SDCARD_SORT_ALPHA)
#if SDSORT_LIMIT > 256
#error "SDSORT_LIMIT must be 256 or smaller."
#elif SDSORT_LIMIT < 10
#error "SDSORT_LIMIT should be greater than 9 to be useful."
#elif DISABLED(SDSORT_USES_RAM) && ENABLED(SDSORT_CACHE_NAMES)
#error "SDSORT_CACHE_NAMES requires SDSORT_USES_RAM (which reads the directory into RAM)."
#endif
#endif
/**
* Delta requirements
*/