瀏覽代碼

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
 #else
55
 #else
56
   #define _X_MS3
56
   #define _X_MS3
57
 #endif
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
 #if PIN_EXISTS(Y_MIN)
66
 #if PIN_EXISTS(Y_MIN)
62
   #define _Y_MIN Y_MIN_PIN,
67
   #define _Y_MIN Y_MIN_PIN,
88
 #else
93
 #else
89
   #define _Y_MS3
94
   #define _Y_MS3
90
 #endif
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
 #if PIN_EXISTS(Z_MIN)
104
 #if PIN_EXISTS(Z_MIN)
95
   #define _Z_MIN Z_MIN_PIN,
105
   #define _Z_MIN Z_MIN_PIN,
121
 #else
131
 #else
122
   #define _Z_MS3
132
   #define _Z_MS3
123
 #endif
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
 // Extruder Chip Select, Digital Micro-steps
143
 // Extruder Chip Select, Digital Micro-steps

Loading…
取消
儲存