浏览代码

Ensure Z_PROBE_PIN is defined if Z_PROBE_AND_ENDSTOP is.

Chris Roadfeldt 9 年前
父节点
当前提交
a9802c95b3
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4
    1
      Marlin/SanityCheck.h

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

@@ -103,8 +103,11 @@
103 103
      * Require a Z Probe Pin if Z_PROBE_AND_ENDSTOP is enabled.
104 104
      */
105 105
     #if defined(Z_PROBE_AND_ENDSTOP)
106
+      #ifndef Z_PROBE_PIN
107
+        #error You must have a Z_PROBE_PIN defined in your pins_XXXX.h file if you enable Z_PROBE_AND_ENDSTOP
108
+      #endif
106 109
       #if Z_PROBE_PIN == -1
107
-        #error You must have a Z_PROBE_PIN defined if you enable Z_PROBE_AND_ENDSTOP
110
+        #error You must set Z_PROBE_PIN to a valid pin if you enable Z_PROBE_AND_ENDSTOP
108 111
       #endif
109 112
       #ifndef NUM_SERVOS
110 113
         #error You must have NUM_SERVOS defined and there must be at least 1 configured to use Z_PROBE_AND_ENDSTOP

正在加载...
取消
保存