浏览代码

Use PIN_EXISTS in sanity check

Scott Lahteine 10 年前
父节点
当前提交
edeb58288e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Marlin/SanityCheck.h

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

@@ -146,7 +146,7 @@
146 146
      * Require a Z Probe Pin if Z_PROBE_ENDSTOP is enabled.
147 147
      */
148 148
     #if ENABLED(Z_PROBE_ENDSTOP)
149
-      #ifndef Z_PROBE_PIN
149
+      #if !PIN_EXISTS(Z_PROBE)
150 150
         #error You must have a Z_PROBE_PIN defined in your pins_XXXX.h file if you enable Z_PROBE_ENDSTOP.
151 151
       #endif
152 152
       #if Z_PROBE_PIN == -1

正在加载...
取消
保存