Browse Source

Merge pull request #20 from XPila/MK3

SG homing - fixed bug - set sg_homing_delay to zero before move.
XPila 7 years ago
parent
commit
76477edf63
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Firmware/Marlin_main.cpp

+ 3 - 0
Firmware/Marlin_main.cpp

@@ -2006,6 +2006,7 @@ void homeaxis(int axis) {
         plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate/60, active_extruder);
 
 #ifdef HAVE_TMC2130_DRIVERS
+		sg_homing_delay = 0;
 		tmc2130_axis_stalled[axis] = false;
 #endif
         st_synchronize();
@@ -2016,6 +2017,7 @@ void homeaxis(int axis) {
         plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate/60, active_extruder);
 
 #ifdef HAVE_TMC2130_DRIVERS
+		sg_homing_delay = 0;
 		tmc2130_axis_stalled[axis] = false;
 #endif
         st_synchronize();
@@ -2030,6 +2032,7 @@ void homeaxis(int axis) {
         plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate/60, active_extruder);
 
 #ifdef HAVE_TMC2130_DRIVERS
+		sg_homing_delay = 0;
 		tmc2130_axis_stalled[axis] = false;
 #endif
         st_synchronize();