Skip to content
Snippets Groups Projects
Commit a9802c95 authored by Chris Roadfeldt's avatar Chris Roadfeldt
Browse files

Ensure Z_PROBE_PIN is defined if Z_PROBE_AND_ENDSTOP is.

parent 62834a1c
Branches
Tags
No related merge requests found
...@@ -103,8 +103,11 @@ ...@@ -103,8 +103,11 @@
* Require a Z Probe Pin if Z_PROBE_AND_ENDSTOP is enabled. * Require a Z Probe Pin if Z_PROBE_AND_ENDSTOP is enabled.
*/ */
#if defined(Z_PROBE_AND_ENDSTOP) #if defined(Z_PROBE_AND_ENDSTOP)
#ifndef Z_PROBE_PIN
#error You must have a Z_PROBE_PIN defined in your pins_XXXX.h file if you enable Z_PROBE_AND_ENDSTOP
#endif
#if Z_PROBE_PIN == -1 #if Z_PROBE_PIN == -1
#error You must have a Z_PROBE_PIN defined if you enable Z_PROBE_AND_ENDSTOP #error You must set Z_PROBE_PIN to a valid pin if you enable Z_PROBE_AND_ENDSTOP
#endif #endif
#ifndef NUM_SERVOS #ifndef NUM_SERVOS
#error You must have NUM_SERVOS defined and there must be at least 1 configured to use Z_PROBE_AND_ENDSTOP #error You must have NUM_SERVOS defined and there must be at least 1 configured to use Z_PROBE_AND_ENDSTOP
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment