From ca6ddbc555415c572f1234e471320b7fde9b8dac Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sat, 30 Jun 2018 17:26:49 -0500 Subject: [PATCH] Detect endstop hits in any direction --- Marlin/endstops.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Marlin/endstops.cpp b/Marlin/endstops.cpp index 735ab7876..7a7fbc7bd 100644 --- a/Marlin/endstops.cpp +++ b/Marlin/endstops.cpp @@ -405,7 +405,7 @@ void Endstops::update() { * Check and update endstops */ #if HAS_X_MIN - #if ENABLED(X_DUAL_ENDSTOPS) && X_HOME_DIR < 0 + #if ENABLED(X_DUAL_ENDSTOPS) UPDATE_ENDSTOP_BIT(X, MIN); #if HAS_X2_MIN UPDATE_ENDSTOP_BIT(X2, MIN); @@ -418,7 +418,7 @@ void Endstops::update() { #endif #if HAS_X_MAX - #if ENABLED(X_DUAL_ENDSTOPS) && X_HOME_DIR > 0 + #if ENABLED(X_DUAL_ENDSTOPS) UPDATE_ENDSTOP_BIT(X, MAX); #if HAS_X2_MAX UPDATE_ENDSTOP_BIT(X2, MAX); @@ -430,7 +430,7 @@ void Endstops::update() { #endif #endif - #if HAS_Y_MIN && Y_HOME_DIR < 0 + #if HAS_Y_MIN #if ENABLED(Y_DUAL_ENDSTOPS) UPDATE_ENDSTOP_BIT(Y, MIN); #if HAS_Y2_MIN @@ -443,7 +443,7 @@ void Endstops::update() { #endif #endif - #if HAS_Y_MAX && Y_HOME_DIR > 0 + #if HAS_Y_MAX #if ENABLED(Y_DUAL_ENDSTOPS) UPDATE_ENDSTOP_BIT(Y, MAX); #if HAS_Y2_MAX @@ -457,7 +457,7 @@ void Endstops::update() { #endif #if HAS_Z_MIN - #if ENABLED(Z_DUAL_ENDSTOPS) && Z_HOME_DIR < 0 + #if ENABLED(Z_DUAL_ENDSTOPS) UPDATE_ENDSTOP_BIT(Z, MIN); #if HAS_Z2_MIN UPDATE_ENDSTOP_BIT(Z2, MIN); @@ -476,7 +476,7 @@ void Endstops::update() { UPDATE_ENDSTOP_BIT(Z, MIN_PROBE); #endif - #if HAS_Z_MAX && Z_HOME_DIR > 0 + #if HAS_Z_MAX // Check both Z dual endstops #if ENABLED(Z_DUAL_ENDSTOPS) UPDATE_ENDSTOP_BIT(Z, MAX);