From 89fb778684cf3e6f6e41844a1d4d9550a430e350 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 6 Sep 2015 16:16:33 -0700 Subject: [PATCH] Fix up probe pin define and test --- Marlin/SanityCheck.h | 7 ++----- Marlin/pins_RAMPS_13.h | 1 - Marlin/pins_RUMBA.h | 1 - 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Marlin/SanityCheck.h b/Marlin/SanityCheck.h index 7ad8fb3aca..b868f649fa 100644 --- a/Marlin/SanityCheck.h +++ b/Marlin/SanityCheck.h @@ -135,7 +135,7 @@ #if !PIN_EXISTS(Z_MIN) #if !PIN_EXISTS(Z_MIN_PROBE) || (DISABLED(Z_MIN_PROBE_ENDSTOP) || ENABLED(DISABLE_Z_MIN_PROBE_ENDSTOP)) // It's possible for someone to set a pin for the Z probe, but not enable it. #if ENABLED(Z_MIN_PROBE_REPEATABILITY_TEST) - #error You must have a Z min or Z probe endstop to enable Z_MIN_PROBE_REPEATABILITY_TEST. + #error You must have a Z_MIN or Z_PROBE endstop to enable Z_MIN_PROBE_REPEATABILITY_TEST. #else #error AUTO_BED_LEVELING_FEATURE requires a Z_MIN or Z_PROBE endstop. Z_MIN_PIN or Z_MIN_PROBE_PIN must point to a valid hardware pin. #endif @@ -146,11 +146,8 @@ * Require a Z probe pin if Z_MIN_PROBE_ENDSTOP is enabled. */ #if ENABLED(Z_MIN_PROBE_ENDSTOP) - #ifndef Z_MIN_PROBE_PIN - #error You must have a Z_MIN_PROBE_PIN defined in your pins_XXXX.h file if you enable Z_MIN_PROBE_ENDSTOP. - #endif #if !PIN_EXISTS(Z_MIN_PROBE) - #error You must set Z_MIN_PROBE_PIN to a valid pin if you enable Z_MIN_PROBE_ENDSTOP. + #error You must have a Z_MIN_PROBE_PIN defined in your pins_XXXX.h file if you enable Z_MIN_PROBE_ENDSTOP. #endif // Forcing Servo definitions can break some hall effect sensor setups. Leaving these here for further comment. // #ifndef NUM_SERVOS diff --git a/Marlin/pins_RAMPS_13.h b/Marlin/pins_RAMPS_13.h index 7f651f3658..69e4c685d4 100644 --- a/Marlin/pins_RAMPS_13.h +++ b/Marlin/pins_RAMPS_13.h @@ -40,7 +40,6 @@ #define Z_ENABLE_PIN 62 #define Z_MIN_PIN 18 #define Z_MAX_PIN 19 -#define Z_MIN_PROBE_PIN -1 #define E0_STEP_PIN 26 #define E0_DIR_PIN 28 diff --git a/Marlin/pins_RUMBA.h b/Marlin/pins_RUMBA.h index bc314c9c71..440b863cde 100644 --- a/Marlin/pins_RUMBA.h +++ b/Marlin/pins_RUMBA.h @@ -27,7 +27,6 @@ #define Z_ENABLE_PIN 62 #define Z_MIN_PIN 33 #define Z_MAX_PIN 32 -#define Z_MIN_PROBE_PIN -1 #if ENABLED(Z_MIN_PROBE_ENDSTOP) // Define a pin to use as the signal pin on Arduino for the Z probe endstop.