Przeglądaj źródła

Merge pull request #8552 from revilor/bugfix-1.1.x

MK2_MULTIPLEXER does not require E2/E3 stepper pins
Scott Lahteine 7 lat temu
rodzic
commit
8696f98c3b
No account linked to committer's email address
1 zmienionych plików z 17 dodań i 16 usunięć
  1. 17
    16
      Marlin/SanityCheck.h

+ 17
- 16
Marlin/SanityCheck.h Wyświetl plik

@@ -1056,24 +1056,25 @@ static_assert(1 >= 0
1056 1056
 /**
1057 1057
  * Test Extruder Stepper Pins
1058 1058
  */
1059
-#if E_STEPPERS > 4
1060
-  #if !PIN_EXISTS(E4_STEP) || !PIN_EXISTS(E4_DIR) || !PIN_EXISTS(E4_ENABLE)
1061
-    #error "E4_STEP_PIN, E4_DIR_PIN, or E4_ENABLE_PIN not defined for this board."
1062
-  #endif
1063
-#elif E_STEPPERS > 3
1064
-  #if !PIN_EXISTS(E3_STEP) || !PIN_EXISTS(E3_DIR) || !PIN_EXISTS(E3_ENABLE)
1065
-    #error "E3_STEP_PIN, E3_DIR_PIN, or E3_ENABLE_PIN not defined for this board."
1066
-  #endif
1067
-#elif E_STEPPERS > 2
1068
-  #if !PIN_EXISTS(E2_STEP) || !PIN_EXISTS(E2_DIR) || !PIN_EXISTS(E2_ENABLE)
1069
-    #error "E2_STEP_PIN, E2_DIR_PIN, or E2_ENABLE_PIN not defined for this board."
1070
-  #endif
1071
-#elif E_STEPPERS > 1
1072
-  #if !PIN_EXISTS(E1_STEP) || !PIN_EXISTS(E1_DIR) || !PIN_EXISTS(E1_ENABLE)
1073
-    #error "E1_STEP_PIN, E1_DIR_PIN, or E1_ENABLE_PIN not defined for this board."
1059
+#if DISABLED(MK2_MULTIPLEXER) // MK2_MULTIPLEXER uses E0 stepper only
1060
+  #if E_STEPPERS > 4
1061
+    #if !PIN_EXISTS(E4_STEP) || !PIN_EXISTS(E4_DIR) || !PIN_EXISTS(E4_ENABLE)
1062
+      #error "E4_STEP_PIN, E4_DIR_PIN, or E4_ENABLE_PIN not defined for this board."
1063
+    #endif
1064
+  #elif E_STEPPERS > 3
1065
+    #if !PIN_EXISTS(E3_STEP) || !PIN_EXISTS(E3_DIR) || !PIN_EXISTS(E3_ENABLE)
1066
+      #error "E3_STEP_PIN, E3_DIR_PIN, or E3_ENABLE_PIN not defined for this board."
1067
+    #endif
1068
+  #elif E_STEPPERS > 2
1069
+    #if !PIN_EXISTS(E2_STEP) || !PIN_EXISTS(E2_DIR) || !PIN_EXISTS(E2_ENABLE)
1070
+      #error "E2_STEP_PIN, E2_DIR_PIN, or E2_ENABLE_PIN not defined for this board."
1071
+    #endif
1072
+  #elif E_STEPPERS > 1
1073
+    #if !PIN_EXISTS(E1_STEP) || !PIN_EXISTS(E1_DIR) || !PIN_EXISTS(E1_ENABLE)
1074
+      #error "E1_STEP_PIN, E1_DIR_PIN, or E1_ENABLE_PIN not defined for this board."
1075
+    #endif
1074 1076
   #endif
1075 1077
 #endif
1076
-
1077 1078
 /**
1078 1079
  * Endstop Tests
1079 1080
  */

Ładowanie…
Anuluj
Zapisz