Ver Fonte

Fixed a regression error from the last commit regarding Z homing.
Removed unused Z_LATE_ENABLE symbol.

bubnikv há 6 anos atrás
pai
commit
1eac2b4ccb
2 ficheiros alterados com 1 adições e 3 exclusões
  1. 0 2
      Firmware/Configuration_adv.h
  2. 1 1
      Firmware/stepper.cpp

+ 0 - 2
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

+ 1 - 1
Firmware/stepper.cpp

@@ -545,7 +545,7 @@ FORCE_INLINE void stepper_check_endstops()
     if ((out_bits & (1<<Z_AXIS)) != 0) // -direction
     {
       #if defined(Z_MIN_PIN) && (Z_MIN_PIN > -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);