Skip to content

Commit a639441

Browse files
Bob-the-Kuhnernisv
authored andcommitted
🔧 Fix SD sorting sanity checks (MarlinFirmware#25318)
1 parent 251af93 commit a639441

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
@@ -980,12 +980,12 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE, "Movement bounds (X_MIN_POS, X_MAX_POS
980980
#error "SDSORT_LIMIT must be 256 or smaller."
981981
#elif SDSORT_LIMIT < 10
982982
#error "SDSORT_LIMIT should be greater than 9 to be useful."
983-
#elif DISABLED(SDSORT_USES_RAM)
984-
#if ENABLED(SDSORT_DYNAMIC_RAM)
985-
#error "SDSORT_DYNAMIC_RAM requires SDSORT_USES_RAM (which reads the directory into RAM)."
986-
#elif ENABLED(SDSORT_CACHE_NAMES)
987-
#error "SDSORT_CACHE_NAMES requires SDSORT_USES_RAM (which reads the directory into RAM)."
988-
#endif
983+
#elif ENABLED(SDSORT_DYNAMIC_RAM) && DISABLED(SDSORT_USES_RAM)
984+
#error "SDSORT_DYNAMIC_RAM requires SDSORT_USES_RAM (which reads the directory into RAM)."
985+
#elif ENABLED(SDSORT_CACHE_NAMES) && DISABLED(SDSORT_USES_RAM)
986+
#error "SDSORT_CACHE_NAMES requires SDSORT_USES_RAM (which reads the directory into RAM)."
987+
#elif ENABLED(SDSORT_DYNAMIC_RAM) && DISABLED(SDSORT_CACHE_NAMES)
988+
#error "SDSORT_DYNAMIC_RAM requires SDSORT_CACHE_NAMES."
989989
#endif
990990

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

0 commit comments

Comments
 (0)