New feature: SDCARD_SORT_ALPHA

This commit is contained in:
Scott Lahteine
2017-02-09 07:02:25 -06:00
parent c04d6b5aa6
commit a561bd5e3a
24 changed files with 896 additions and 8 deletions

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
*/