From 1eac2b4ccbfdd353a050670caa519e16ae396a27 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Mon, 15 Jan 2018 12:00:28 +0100 Subject: [PATCH] Fixed a regression error from the last commit regarding Z homing. Removed unused Z_LATE_ENABLE symbol. --- Firmware/Configuration_adv.h | 2 -- Firmware/stepper.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Firmware/Configuration_adv.h b/Firmware/Configuration_adv.h index 36b247cd..90f72462 100644 --- a/Firmware/Configuration_adv.h +++ b/Firmware/Configuration_adv.h @@ -127,8 +127,6 @@ //END AUTOSET LOCATIONS OF LIMIT SWITCHES -ZP -//#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats. - // A single Z stepper driver is usually used to drive 2 stepper motors. // Uncomment this define to utilize a separate stepper driver for each Z axis motor. // Only a few motherboards support this, like RAMPS, which have dual extruder support (the 2nd, often unused, extruder driver is used diff --git a/Firmware/stepper.cpp b/Firmware/stepper.cpp index bb020c44..8ea867de 100644 --- a/Firmware/stepper.cpp +++ b/Firmware/stepper.cpp @@ -545,7 +545,7 @@ FORCE_INLINE void stepper_check_endstops() if ((out_bits & (1< -1) && !defined(DEBUG_DISABLE_ZMINLIMIT) - if (check_z_endstop) { + if (! check_z_endstop) { #ifdef TMC2130_SG_HOMING // Stall guard homing turned on z_min_endstop = (READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTING) || (READ(Z_TMC2130_DIAG) != 0);