|
@@ -552,32 +552,14 @@
|
552
|
552
|
/**
|
553
|
553
|
* ARRAY_BY_EXTRUDERS based on EXTRUDERS
|
554
|
554
|
*/
|
555
|
|
- #if EXTRUDERS > 3
|
556
|
|
- #define ARRAY_BY_EXTRUDERS(v1, v2, v3, v4) { v1, v2, v3, v4 }
|
557
|
|
- #elif EXTRUDERS > 2
|
558
|
|
- #define ARRAY_BY_EXTRUDERS(v1, v2, v3, v4) { v1, v2, v3 }
|
559
|
|
- #elif EXTRUDERS > 1
|
560
|
|
- #define ARRAY_BY_EXTRUDERS(v1, v2, v3, v4) { v1, v2 }
|
561
|
|
- #else
|
562
|
|
- #define ARRAY_BY_EXTRUDERS(v1, v2, v3, v4) { v1 }
|
563
|
|
- #endif
|
564
|
|
-
|
565
|
|
- #define ARRAY_BY_EXTRUDERS1(v1) ARRAY_BY_EXTRUDERS(v1, v1, v1, v1)
|
|
555
|
+ #define ARRAY_BY_EXTRUDERS(args...) ARRAY_N(EXTRUDERS, args)
|
|
556
|
+ #define ARRAY_BY_EXTRUDERS1(v1) ARRAY_BY_EXTRUDERS(v1, v1, v1, v1, v1, v1)
|
566
|
557
|
|
567
|
558
|
/**
|
568
|
559
|
* ARRAY_BY_HOTENDS based on HOTENDS
|
569
|
560
|
*/
|
570
|
|
- #if HOTENDS > 3
|
571
|
|
- #define ARRAY_BY_HOTENDS(v1, v2, v3, v4) { v1, v2, v3, v4 }
|
572
|
|
- #elif HOTENDS > 2
|
573
|
|
- #define ARRAY_BY_HOTENDS(v1, v2, v3, v4) { v1, v2, v3 }
|
574
|
|
- #elif HOTENDS > 1
|
575
|
|
- #define ARRAY_BY_HOTENDS(v1, v2, v3, v4) { v1, v2 }
|
576
|
|
- #else
|
577
|
|
- #define ARRAY_BY_HOTENDS(v1, v2, v3, v4) { v1 }
|
578
|
|
- #endif
|
579
|
|
-
|
580
|
|
- #define ARRAY_BY_HOTENDS1(v1) ARRAY_BY_HOTENDS(v1, v1, v1, v1)
|
|
561
|
+ #define ARRAY_BY_HOTENDS(args...) ARRAY_N(HOTENDS, args)
|
|
562
|
+ #define ARRAY_BY_HOTENDS1(v1) ARRAY_BY_HOTENDS(v1, v1, v1, v1, v1, v1)
|
581
|
563
|
|
582
|
564
|
/**
|
583
|
565
|
* Z_DUAL_ENDSTOPS endstop reassignment
|