Browse Source

MK2_MULTIPLEXER does not require E2/E3 stepper pins

oliver 7 years ago
parent
commit
92a0dc552a
1 changed files with 17 additions and 16 deletions
  1. 17
    16
      Marlin/src/inc/SanityCheck.h

+ 17
- 16
Marlin/src/inc/SanityCheck.h View File

@@ -1076,24 +1076,25 @@ static_assert(1 >= 0
1076 1076
 /**
1077 1077
  * Test Extruder Stepper Pins
1078 1078
  */
1079
-#if E_STEPPERS > 4
1080
-  #if !PIN_EXISTS(E4_STEP) || !PIN_EXISTS(E4_DIR) || !PIN_EXISTS(E4_ENABLE)
1081
-    #error "E4_STEP_PIN, E4_DIR_PIN, or E4_ENABLE_PIN not defined for this board."
1082
-  #endif
1083
-#elif E_STEPPERS > 3
1084
-  #if !PIN_EXISTS(E3_STEP) || !PIN_EXISTS(E3_DIR) || !PIN_EXISTS(E3_ENABLE)
1085
-    #error "E3_STEP_PIN, E3_DIR_PIN, or E3_ENABLE_PIN not defined for this board."
1086
-  #endif
1087
-#elif E_STEPPERS > 2
1088
-  #if !PIN_EXISTS(E2_STEP) || !PIN_EXISTS(E2_DIR) || !PIN_EXISTS(E2_ENABLE)
1089
-    #error "E2_STEP_PIN, E2_DIR_PIN, or E2_ENABLE_PIN not defined for this board."
1090
-  #endif
1091
-#elif E_STEPPERS > 1
1092
-  #if !PIN_EXISTS(E1_STEP) || !PIN_EXISTS(E1_DIR) || !PIN_EXISTS(E1_ENABLE)
1093
-    #error "E1_STEP_PIN, E1_DIR_PIN, or E1_ENABLE_PIN not defined for this board."
1079
+#if DISABLED(MK2_MULTIPLEXER) // MK2_MULTIPLEXER uses E0 stepper only
1080
+  #if E_STEPPERS > 4
1081
+    #if !PIN_EXISTS(E4_STEP) || !PIN_EXISTS(E4_DIR) || !PIN_EXISTS(E4_ENABLE)
1082
+      #error "E4_STEP_PIN, E4_DIR_PIN, or E4_ENABLE_PIN not defined for this board."
1083
+    #endif
1084
+  #elif E_STEPPERS > 3
1085
+    #if !PIN_EXISTS(E3_STEP) || !PIN_EXISTS(E3_DIR) || !PIN_EXISTS(E3_ENABLE)
1086
+      #error "E3_STEP_PIN, E3_DIR_PIN, or E3_ENABLE_PIN not defined for this board."
1087
+    #endif
1088
+  #elif E_STEPPERS > 2
1089
+    #if !PIN_EXISTS(E2_STEP) || !PIN_EXISTS(E2_DIR) || !PIN_EXISTS(E2_ENABLE)
1090
+      #error "E2_STEP_PIN, E2_DIR_PIN, or E2_ENABLE_PIN not defined for this board."
1091
+    #endif
1092
+  #elif E_STEPPERS > 1
1093
+    #if !PIN_EXISTS(E1_STEP) || !PIN_EXISTS(E1_DIR) || !PIN_EXISTS(E1_ENABLE)
1094
+      #error "E1_STEP_PIN, E1_DIR_PIN, or E1_ENABLE_PIN not defined for this board."
1095
+    #endif
1094 1096
   #endif
1095 1097
 #endif
1096
-
1097 1098
 /**
1098 1099
  * Endstop Tests
1099 1100
  */

Loading…
Cancel
Save