From d867c185350aec24419a4899254ed1f49085cd3b Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 5 Apr 2015 03:44:47 -0700 Subject: [PATCH] Fix compile error with Z_DUAL_ENDSTOPS --- Marlin/pins_RAMPS_13.h | 4 ++++ Marlin/stepper.cpp | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Marlin/pins_RAMPS_13.h b/Marlin/pins_RAMPS_13.h index 2708117d0..af1d2d3bb 100644 --- a/Marlin/pins_RAMPS_13.h +++ b/Marlin/pins_RAMPS_13.h @@ -40,6 +40,10 @@ #define Y2_DIR_PIN 34 #define Y2_ENABLE_PIN 30 +#undef Z2_STEP_PIN +#undef Z2_DIR_PIN +#undef Z2_ENABLE_PIN + #define Z2_STEP_PIN 36 #define Z2_DIR_PIN 34 #define Z2_ENABLE_PIN 30 diff --git a/Marlin/stepper.cpp b/Marlin/stepper.cpp index ba4a4e967..c53d7c0c9 100644 --- a/Marlin/stepper.cpp +++ b/Marlin/stepper.cpp @@ -105,16 +105,16 @@ static volatile bool endstop_z_probe_hit = false; // Leaving this in even if Z_P static bool old_z_max_endstop = false; #endif #ifdef Z_DUAL_ENDSTOPS - #if HAS_Z2_MIN + // #if HAS_Z2_MIN static bool old_z2_min_endstop = false; - #endif - #if HAS_Z2_MAX + // #endif + // #if HAS_Z2_MAX static bool old_z2_max_endstop = false; - #endif + // #endif #endif #ifdef Z_PROBE_ENDSTOP // No need to check for valid pin, SanityCheck.h already does this. -static bool old_z_probe_endstop = false; + static bool old_z_probe_endstop = false; #endif static bool check_endstops = true;