Skip to content

Commit eeb8e9c

Browse files
committed
clean up, add expansion options
1 parent c1e1b83 commit eeb8e9c

File tree

2 files changed

+169
-159
lines changed

2 files changed

+169
-159
lines changed

Marlin/src/inc/SanityCheck.h

+6-4
Original file line numberDiff line numberDiff line change
@@ -626,10 +626,12 @@ static_assert(COUNT(arm) == LOGICAL_AXES, "AXIS_RELATIVE_MODES must contain " _L
626626
*/
627627
#if HAS_MULTI_EXTRUDER
628628

629-
#if HAS_EXTENDABLE_MMU
630-
#define MAX_EXTRUDERS 15
631-
#else
632-
#define MAX_EXTRUDERS 8
629+
#ifndef MAX_EXTRUDERS
630+
#if HAS_EXTENDABLE_MMU
631+
#define MAX_EXTRUDERS 15
632+
#else
633+
#define MAX_EXTRUDERS 8
634+
#endif
633635
#endif
634636
static_assert(EXTRUDERS <= MAX_EXTRUDERS, "Marlin supports a maximum of " STRINGIFY(MAX_EXTRUDERS) " EXTRUDERS.");
635637
#undef MAX_EXTRUDERS

0 commit comments

Comments
 (0)