Skip to content

Commit 64338df

Browse files
authored
🔧 Fix SD sorting sanity checks (MarlinFirmware#25318)
1 parent fbe9237 commit 64338df

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Marlin/src/inc/SanityCheck.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -994,12 +994,12 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE, "Movement bounds (X_MIN_POS, X_MAX_POS
994994
#error "SDSORT_LIMIT must be 256 or smaller."
995995
#elif SDSORT_LIMIT < 10
996996
#error "SDSORT_LIMIT should be greater than 9 to be useful."
997-
#elif DISABLED(SDSORT_USES_RAM)
998-
#if ENABLED(SDSORT_DYNAMIC_RAM)
999-
#error "SDSORT_DYNAMIC_RAM requires SDSORT_USES_RAM (which reads the directory into RAM)."
1000-
#elif ENABLED(SDSORT_CACHE_NAMES)
1001-
#error "SDSORT_CACHE_NAMES requires SDSORT_USES_RAM (which reads the directory into RAM)."
1002-
#endif
997+
#elif ENABLED(SDSORT_DYNAMIC_RAM) && DISABLED(SDSORT_USES_RAM)
998+
#error "SDSORT_DYNAMIC_RAM requires SDSORT_USES_RAM (which reads the directory into RAM)."
999+
#elif ENABLED(SDSORT_CACHE_NAMES) && DISABLED(SDSORT_USES_RAM)
1000+
#error "SDSORT_CACHE_NAMES requires SDSORT_USES_RAM (which reads the directory into RAM)."
1001+
#elif ENABLED(SDSORT_DYNAMIC_RAM) && DISABLED(SDSORT_CACHE_NAMES)
1002+
#error "SDSORT_DYNAMIC_RAM requires SDSORT_CACHE_NAMES."
10031003
#endif
10041004

10051005
#if ENABLED(SDSORT_CACHE_NAMES) && DISABLED(SDSORT_DYNAMIC_RAM)

0 commit comments

Comments
 (0)