From ed7d2694fcceae03629d37097976232fa1d66d76 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 30 Sep 2016 16:37:49 -0500 Subject: [PATCH 1/2] Don't check Z_MAX on raise when the probe pwns the pin --- Marlin/endstops.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Marlin/endstops.cpp b/Marlin/endstops.cpp index 5cbc382f76..1c50eb6492 100644 --- a/Marlin/endstops.cpp +++ b/Marlin/endstops.cpp @@ -315,7 +315,7 @@ void Endstops::update() { #else if (stepper.motor_direction(Z_AXIS)) #endif - { // z -direction + { // Z -direction. Gantry down, bed up. #if HAS_Z_MIN #if ENABLED(Z_DUAL_ENDSTOPS) @@ -341,6 +341,7 @@ void Endstops::update() { #endif // HAS_Z_MIN + // When closing the gap check the enabled probe #if ENABLED(Z_MIN_PROBE_ENDSTOP) if (z_probe_enabled) { UPDATE_ENDSTOP(Z, MIN_PROBE); @@ -348,9 +349,10 @@ void Endstops::update() { } #endif } - else { // z +direction + else { // Z +direction. Gantry up, bed down. #if HAS_Z_MAX + // Check both Z dual endstops #if ENABLED(Z_DUAL_ENDSTOPS) UPDATE_ENDSTOP_BIT(Z, MAX); @@ -362,11 +364,13 @@ void Endstops::update() { test_dual_z_endstops(Z_MAX, Z2_MAX); - #else // !Z_DUAL_ENDSTOPS + // If this pin is not hijacked for the bed probe + // then it belongs to the Z endstop + #elif DISABLED(Z_MIN_PROBE_ENDSTOP) || Z_MAX_PIN != Z_MIN_PROBE_PIN UPDATE_ENDSTOP(Z, MAX); - #endif // !Z_DUAL_ENDSTOPS + #endif // !Z_MIN_PROBE_PIN... #endif // Z_MAX_PIN } #if ENABLED(COREXZ) From 4afa293289cb9c35384850873888305266bd2342 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Thu, 29 Sep 2016 21:28:23 -0500 Subject: [PATCH 2/2] Say "BLTOUCH" in machine info report --- Marlin/Marlin_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index fea989ec56..be68cc7754 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -2893,10 +2893,10 @@ inline void gcode_G4() { SERIAL_ECHOPGM("Probe: "); #if ENABLED(FIX_MOUNTED_PROBE) SERIAL_ECHOLNPGM("FIX_MOUNTED_PROBE"); - #elif HAS_Z_SERVO_ENDSTOP - SERIAL_ECHOLNPGM("SERVO PROBE"); #elif ENABLED(BLTOUCH) SERIAL_ECHOLNPGM("BLTOUCH"); + #elif HAS_Z_SERVO_ENDSTOP + SERIAL_ECHOLNPGM("SERVO PROBE"); #elif ENABLED(Z_PROBE_SLED) SERIAL_ECHOLNPGM("Z_PROBE_SLED"); #elif ENABLED(Z_PROBE_ALLEN_KEY)