瀏覽代碼

Conditionals and Sanity Check for SINGLENOZZLE

Scott Lahteine 8 年之前
父節點
當前提交
92ac133f2b
共有 2 個文件被更改,包括 13 次插入1 次删除
  1. 10
    0
      Marlin/Conditionals.h
  2. 3
    1
      Marlin/SanityCheck.h

+ 10
- 0
Marlin/Conditionals.h 查看文件

@@ -540,6 +540,16 @@
540 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 553
    * Z_DUAL_ENDSTOPS endstop reassignment
544 554
    */
545 555
   #if ENABLED(Z_DUAL_ENDSTOPS)

+ 3
- 1
Marlin/SanityCheck.h 查看文件

@@ -149,7 +149,9 @@
149 149
     #error "EXTRUDERS must be 1 with Z_DUAL_STEPPER_DRIVERS."
150 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 157
  * Limited number of servos

Loading…
取消
儲存