Browse Source

Wrap Dual Y options in a conditional

Scott Lahteine 10 years ago
parent
commit
28599c51c7

+ 4
- 2
Marlin/Configuration_adv.h View File

157
 // Same again but for Y Axis.
157
 // Same again but for Y Axis.
158
 //#define Y_DUAL_STEPPER_DRIVERS
158
 //#define Y_DUAL_STEPPER_DRIVERS
159
 
159
 
160
-// Define if the two Y drives need to rotate in opposite directions
161
-#define INVERT_Y2_VS_Y_DIR true
160
+#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
161
+  // Define if the two Y drives need to rotate in opposite directions
162
+  #define INVERT_Y2_VS_Y_DIR true
163
+#endif
162
 
164
 
163
 // Enable this for dual x-carriage printers.
165
 // Enable this for dual x-carriage printers.
164
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which
166
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which

+ 4
- 2
Marlin/configurator/config/Configuration_adv.h View File

157
 // Same again but for Y Axis.
157
 // Same again but for Y Axis.
158
 //#define Y_DUAL_STEPPER_DRIVERS
158
 //#define Y_DUAL_STEPPER_DRIVERS
159
 
159
 
160
-// Define if the two Y drives need to rotate in opposite directions
161
-#define INVERT_Y2_VS_Y_DIR true
160
+#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
161
+  // Define if the two Y drives need to rotate in opposite directions
162
+  #define INVERT_Y2_VS_Y_DIR true
163
+#endif
162
 
164
 
163
 // Enable this for dual x-carriage printers.
165
 // Enable this for dual x-carriage printers.
164
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which
166
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which

+ 4
- 2
Marlin/example_configurations/Felix/Configuration_adv.h View File

165
 // Same again but for Y Axis.
165
 // Same again but for Y Axis.
166
 //#define Y_DUAL_STEPPER_DRIVERS
166
 //#define Y_DUAL_STEPPER_DRIVERS
167
 
167
 
168
-// Define if the two Y drives need to rotate in opposite directions
169
-#define INVERT_Y2_VS_Y_DIR true
168
+#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
169
+  // Define if the two Y drives need to rotate in opposite directions
170
+  #define INVERT_Y2_VS_Y_DIR true
171
+#endif
170
 
172
 
171
 // Enable this for dual x-carriage printers.
173
 // Enable this for dual x-carriage printers.
172
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which
174
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which

+ 4
- 2
Marlin/example_configurations/Hephestos/Configuration_adv.h View File

165
 // Same again but for Y Axis.
165
 // Same again but for Y Axis.
166
 //#define Y_DUAL_STEPPER_DRIVERS
166
 //#define Y_DUAL_STEPPER_DRIVERS
167
 
167
 
168
-// Define if the two Y drives need to rotate in opposite directions
169
-#define INVERT_Y2_VS_Y_DIR true
168
+#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
169
+  // Define if the two Y drives need to rotate in opposite directions
170
+  #define INVERT_Y2_VS_Y_DIR true
171
+#endif
170
 
172
 
171
 // Enable this for dual x-carriage printers.
173
 // Enable this for dual x-carriage printers.
172
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which
174
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which

+ 4
- 2
Marlin/example_configurations/K8200/Configuration_adv.h View File

165
 // Same again but for Y Axis.
165
 // Same again but for Y Axis.
166
 //#define Y_DUAL_STEPPER_DRIVERS
166
 //#define Y_DUAL_STEPPER_DRIVERS
167
 
167
 
168
-// Define if the two Y drives need to rotate in opposite directions
169
-#define INVERT_Y2_VS_Y_DIR true
168
+#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
169
+  // Define if the two Y drives need to rotate in opposite directions
170
+  #define INVERT_Y2_VS_Y_DIR true
171
+#endif
170
 
172
 
171
 // Enable this for dual x-carriage printers.
173
 // Enable this for dual x-carriage printers.
172
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which
174
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which

+ 4
- 2
Marlin/example_configurations/RigidBot/Configuration_adv.h View File

157
 // Same again but for Y Axis.
157
 // Same again but for Y Axis.
158
 //#define Y_DUAL_STEPPER_DRIVERS
158
 //#define Y_DUAL_STEPPER_DRIVERS
159
 
159
 
160
-// Define if the two Y drives need to rotate in opposite directions
161
-#define INVERT_Y2_VS_Y_DIR true
160
+#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
161
+  // Define if the two Y drives need to rotate in opposite directions
162
+  #define INVERT_Y2_VS_Y_DIR true
163
+#endif
162
 
164
 
163
 // Enable this for dual x-carriage printers.
165
 // Enable this for dual x-carriage printers.
164
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which
166
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which

+ 4
- 2
Marlin/example_configurations/SCARA/Configuration_adv.h View File

165
 // Same again but for Y Axis.
165
 // Same again but for Y Axis.
166
 //#define Y_DUAL_STEPPER_DRIVERS
166
 //#define Y_DUAL_STEPPER_DRIVERS
167
 
167
 
168
-// Define if the two Y drives need to rotate in opposite directions
169
-#define INVERT_Y2_VS_Y_DIR true
168
+#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
169
+  // Define if the two Y drives need to rotate in opposite directions
170
+  #define INVERT_Y2_VS_Y_DIR true
171
+#endif
170
 
172
 
171
 // Enable this for dual x-carriage printers.
173
 // Enable this for dual x-carriage printers.
172
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which
174
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which

+ 4
- 2
Marlin/example_configurations/TAZ4/Configuration_adv.h View File

165
 // Same again but for Y Axis.
165
 // Same again but for Y Axis.
166
 //#define Y_DUAL_STEPPER_DRIVERS
166
 //#define Y_DUAL_STEPPER_DRIVERS
167
 
167
 
168
-// Define if the two Y drives need to rotate in opposite directions
169
-#define INVERT_Y2_VS_Y_DIR true
168
+#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
169
+  // Define if the two Y drives need to rotate in opposite directions
170
+  #define INVERT_Y2_VS_Y_DIR true
171
+#endif
170
 
172
 
171
 // Enable this for dual x-carriage printers.
173
 // Enable this for dual x-carriage printers.
172
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which
174
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which

+ 4
- 2
Marlin/example_configurations/WITBOX/Configuration_adv.h View File

165
 // Same again but for Y Axis.
165
 // Same again but for Y Axis.
166
 //#define Y_DUAL_STEPPER_DRIVERS
166
 //#define Y_DUAL_STEPPER_DRIVERS
167
 
167
 
168
-// Define if the two Y drives need to rotate in opposite directions
169
-#define INVERT_Y2_VS_Y_DIR true
168
+#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
169
+  // Define if the two Y drives need to rotate in opposite directions
170
+  #define INVERT_Y2_VS_Y_DIR true
171
+#endif
170
 
172
 
171
 // Enable this for dual x-carriage printers.
173
 // Enable this for dual x-carriage printers.
172
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which
174
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which

+ 4
- 2
Marlin/example_configurations/delta/biv2.5/Configuration_adv.h View File

165
 // Same again but for Y Axis.
165
 // Same again but for Y Axis.
166
 //#define Y_DUAL_STEPPER_DRIVERS
166
 //#define Y_DUAL_STEPPER_DRIVERS
167
 
167
 
168
-// Define if the two Y drives need to rotate in opposite directions
169
-#define INVERT_Y2_VS_Y_DIR true
168
+#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
169
+  // Define if the two Y drives need to rotate in opposite directions
170
+  #define INVERT_Y2_VS_Y_DIR true
171
+#endif
170
 
172
 
171
 // Enable this for dual x-carriage printers.
173
 // Enable this for dual x-carriage printers.
172
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which
174
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which

+ 4
- 2
Marlin/example_configurations/delta/generic/Configuration_adv.h View File

165
 // Same again but for Y Axis.
165
 // Same again but for Y Axis.
166
 //#define Y_DUAL_STEPPER_DRIVERS
166
 //#define Y_DUAL_STEPPER_DRIVERS
167
 
167
 
168
-// Define if the two Y drives need to rotate in opposite directions
169
-#define INVERT_Y2_VS_Y_DIR true
168
+#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
169
+  // Define if the two Y drives need to rotate in opposite directions
170
+  #define INVERT_Y2_VS_Y_DIR true
171
+#endif
170
 
172
 
171
 // Enable this for dual x-carriage printers.
173
 // Enable this for dual x-carriage printers.
172
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which
174
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which

+ 4
- 2
Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h View File

165
 // Same again but for Y Axis.
165
 // Same again but for Y Axis.
166
 //#define Y_DUAL_STEPPER_DRIVERS
166
 //#define Y_DUAL_STEPPER_DRIVERS
167
 
167
 
168
-// Define if the two Y drives need to rotate in opposite directions
169
-#define INVERT_Y2_VS_Y_DIR true
168
+#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
169
+  // Define if the two Y drives need to rotate in opposite directions
170
+  #define INVERT_Y2_VS_Y_DIR true
171
+#endif
170
 
172
 
171
 // Enable this for dual x-carriage printers.
173
 // Enable this for dual x-carriage printers.
172
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which
174
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which

+ 4
- 2
Marlin/example_configurations/makibox/Configuration_adv.h View File

165
 // Same again but for Y Axis.
165
 // Same again but for Y Axis.
166
 //#define Y_DUAL_STEPPER_DRIVERS
166
 //#define Y_DUAL_STEPPER_DRIVERS
167
 
167
 
168
-// Define if the two Y drives need to rotate in opposite directions
169
-#define INVERT_Y2_VS_Y_DIR true
168
+#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
169
+  // Define if the two Y drives need to rotate in opposite directions
170
+  #define INVERT_Y2_VS_Y_DIR true
171
+#endif
170
 
172
 
171
 // Enable this for dual x-carriage printers.
173
 // Enable this for dual x-carriage printers.
172
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which
174
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which

+ 4
- 2
Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h View File

165
 // Same again but for Y Axis.
165
 // Same again but for Y Axis.
166
 //#define Y_DUAL_STEPPER_DRIVERS
166
 //#define Y_DUAL_STEPPER_DRIVERS
167
 
167
 
168
-// Define if the two Y drives need to rotate in opposite directions
169
-#define INVERT_Y2_VS_Y_DIR true
168
+#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
169
+  // Define if the two Y drives need to rotate in opposite directions
170
+  #define INVERT_Y2_VS_Y_DIR true
171
+#endif
170
 
172
 
171
 // Enable this for dual x-carriage printers.
173
 // Enable this for dual x-carriage printers.
172
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which
174
 // A dual x-carriage design has the advantage that the inactive extruder can be parked which

Loading…
Cancel
Save