Use PIN_EXISTS in sanity check
This commit is contained in:
parent
c30b7693e0
commit
edeb58288e
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@
|
||||||
* Require a Z Probe Pin if Z_PROBE_ENDSTOP is enabled.
|
* Require a Z Probe Pin if Z_PROBE_ENDSTOP is enabled.
|
||||||
*/
|
*/
|
||||||
#if ENABLED(Z_PROBE_ENDSTOP)
|
#if ENABLED(Z_PROBE_ENDSTOP)
|
||||||
#ifndef Z_PROBE_PIN
|
#if !PIN_EXISTS(Z_PROBE)
|
||||||
#error You must have a Z_PROBE_PIN defined in your pins_XXXX.h file if you enable Z_PROBE_ENDSTOP.
|
#error You must have a Z_PROBE_PIN defined in your pins_XXXX.h file if you enable Z_PROBE_ENDSTOP.
|
||||||
#endif
|
#endif
|
||||||
#if Z_PROBE_PIN == -1
|
#if Z_PROBE_PIN == -1
|
||||||
|
|
Loading…
Add table
Reference in a new issue