Merge pull request #20 from XPila/MK3

SG homing - fixed bug - set sg_homing_delay to zero before move.
This commit is contained in:
XPila 2017-07-07 07:47:07 +02:00 committed by GitHub
commit 76477edf63

View File

@ -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();