浏览代码

Allow undefined [XYZ]_ENABLE_PIN (for sensitive pins) (#21801)

hannesweisbach 4 年前
父节点
当前提交
857976b29f
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 18 次插入3 次删除
  1. 18
    3
      Marlin/src/pins/sensitive_pins.h

+ 18
- 3
Marlin/src/pins/sensitive_pins.h 查看文件

@@ -55,8 +55,13 @@
55 55
 #else
56 56
   #define _X_MS3
57 57
 #endif
58
+#if PIN_EXISTS(X_ENABLE)
59
+  #define _X_ENABLE_PIN X_ENABLE_PIN,
60
+#else
61
+  #define _X_ENABLE_PIN
62
+#endif
58 63
 
59
-#define _X_PINS X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, _X_MIN _X_MAX _X_MS1 _X_MS2 _X_MS3 _X_CS
64
+#define _X_PINS X_STEP_PIN, X_DIR_PIN, _X_ENABLE_PIN _X_MIN _X_MAX _X_MS1 _X_MS2 _X_MS3 _X_CS
60 65
 
61 66
 #if PIN_EXISTS(Y_MIN)
62 67
   #define _Y_MIN Y_MIN_PIN,
@@ -88,8 +93,13 @@
88 93
 #else
89 94
   #define _Y_MS3
90 95
 #endif
96
+#if PIN_EXISTS(Y_ENABLE)
97
+  #define _Y_ENABLE_PIN Y_ENABLE_PIN,
98
+#else
99
+  #define _Y_ENABLE_PIN
100
+#endif
91 101
 
92
-#define _Y_PINS Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, _Y_MIN _Y_MAX _Y_MS1 _Y_MS2 _Y_MS3 _Y_CS
102
+#define _Y_PINS Y_STEP_PIN, Y_DIR_PIN, _Y_ENABLE_PIN _Y_MIN _Y_MAX _Y_MS1 _Y_MS2 _Y_MS3 _Y_CS
93 103
 
94 104
 #if PIN_EXISTS(Z_MIN)
95 105
   #define _Z_MIN Z_MIN_PIN,
@@ -121,8 +131,13 @@
121 131
 #else
122 132
   #define _Z_MS3
123 133
 #endif
134
+#if PIN_EXISTS(Z_ENABLE)
135
+  #define _Z_ENABLE_PIN Z_ENABLE_PIN,
136
+#else
137
+  #define _Z_ENABLE_PIN
138
+#endif
124 139
 
125
-#define _Z_PINS Z_STEP_PIN, Z_DIR_PIN, Z_ENABLE_PIN, _Z_MIN _Z_MAX _Z_MS1 _Z_MS2 _Z_MS3 _Z_CS
140
+#define _Z_PINS Z_STEP_PIN, Z_DIR_PIN, _Z_ENABLE_PIN _Z_MIN _Z_MAX _Z_MS1 _Z_MS2 _Z_MS3 _Z_CS
126 141
 
127 142
 //
128 143
 // Extruder Chip Select, Digital Micro-steps

正在加载...
取消
保存