1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-23 12:04:19 +00:00

🔧 Fix SD sorting sanity checks (#25318)

This commit is contained in:
Bob Kuhn 2023-02-01 01:51:11 -06:00 committed by Scott Lahteine
parent 858de4ff3f
commit 79e23752ae

View File

@ -980,12 +980,12 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE, "Movement bounds (X_MIN_POS, X_MAX_POS
#error "SDSORT_LIMIT must be 256 or smaller." #error "SDSORT_LIMIT must be 256 or smaller."
#elif SDSORT_LIMIT < 10 #elif SDSORT_LIMIT < 10
#error "SDSORT_LIMIT should be greater than 9 to be useful." #error "SDSORT_LIMIT should be greater than 9 to be useful."
#elif DISABLED(SDSORT_USES_RAM) #elif ENABLED(SDSORT_DYNAMIC_RAM) && DISABLED(SDSORT_USES_RAM)
#if ENABLED(SDSORT_DYNAMIC_RAM) #error "SDSORT_DYNAMIC_RAM requires SDSORT_USES_RAM (which reads the directory into RAM)."
#error "SDSORT_DYNAMIC_RAM requires SDSORT_USES_RAM (which reads the directory into RAM)." #elif ENABLED(SDSORT_CACHE_NAMES) && DISABLED(SDSORT_USES_RAM)
#elif ENABLED(SDSORT_CACHE_NAMES) #error "SDSORT_CACHE_NAMES requires SDSORT_USES_RAM (which reads the directory into RAM)."
#error "SDSORT_CACHE_NAMES requires SDSORT_USES_RAM (which reads the directory into RAM)." #elif ENABLED(SDSORT_DYNAMIC_RAM) && DISABLED(SDSORT_CACHE_NAMES)
#endif #error "SDSORT_DYNAMIC_RAM requires SDSORT_CACHE_NAMES."
#endif #endif
#if ENABLED(SDSORT_CACHE_NAMES) && DISABLED(SDSORT_DYNAMIC_RAM) #if ENABLED(SDSORT_CACHE_NAMES) && DISABLED(SDSORT_DYNAMIC_RAM)