Browse Source

Conditionals and Sanity Check for SINGLENOZZLE

Scott Lahteine 9 years ago
parent
commit
92ac133f2b
2 changed files with 13 additions and 1 deletions
  1. 10
    0
      Marlin/Conditionals.h
  2. 3
    1
      Marlin/SanityCheck.h

+ 10
- 0
Marlin/Conditionals.h View File

540
   #define ARRAY_BY_EXTRUDERS1(v1) ARRAY_BY_EXTRUDERS(v1, v1, v1, v1)
540
   #define ARRAY_BY_EXTRUDERS1(v1) ARRAY_BY_EXTRUDERS(v1, v1, v1, v1)
541
 
541
 
542
   /**
542
   /**
543
+   * With SINGLENOZZLE all "extruders" are in the same place
544
+   */
545
+  #if ENABLED(SINGLENOZZLE)
546
+    #undef EXTRUDER_OFFSET_X
547
+    #undef EXTRUDER_OFFSET_Y
548
+    #define EXTRUDER_OFFSET_X { 0 }
549
+    #define EXTRUDER_OFFSET_Y { 0 }
550
+  #endif
551
+
552
+  /**
543
    * Z_DUAL_ENDSTOPS endstop reassignment
553
    * Z_DUAL_ENDSTOPS endstop reassignment
544
    */
554
    */
545
   #if ENABLED(Z_DUAL_ENDSTOPS)
555
   #if ENABLED(Z_DUAL_ENDSTOPS)

+ 3
- 1
Marlin/SanityCheck.h View File

149
     #error "EXTRUDERS must be 1 with Z_DUAL_STEPPER_DRIVERS."
149
     #error "EXTRUDERS must be 1 with Z_DUAL_STEPPER_DRIVERS."
150
   #endif
150
   #endif
151
 
151
 
152
-#endif // EXTRUDERS > 1
152
+#elif ENABLED(SINGLENOZZLE)
153
+  #error "SINGLENOZZLE requires 2 or more EXTRUDERS."
154
+#endif
153
 
155
 
154
 /**
156
 /**
155
  * Limited number of servos
157
  * Limited number of servos

Loading…
Cancel
Save