|
@@ -260,6 +260,8 @@ void tmc2130_home_enter(uint8_t axes_mask)
|
|
|
{
|
|
|
// printf_P(PSTR("tmc2130_home_enter(axes_mask=0x%02x)\n"), axes_mask);
|
|
|
#ifdef TMC2130_SG_HOMING
|
|
|
+ if (axes_mask & 0x03) //X or Y
|
|
|
+ tmc2130_wait_standstill_xy(1000);
|
|
|
for (uint8_t axis = X_AXIS; axis <= Z_AXIS; axis++) //X Y and Z axes
|
|
|
{
|
|
|
uint8_t mask = (X_AXIS_MASK << axis);
|
|
@@ -283,6 +285,8 @@ void tmc2130_home_exit()
|
|
|
{
|
|
|
// printf_P(PSTR("tmc2130_home_exit sg_homing_axes_mask=0x%02x\n"), sg_homing_axes_mask);
|
|
|
#ifdef TMC2130_SG_HOMING
|
|
|
+ if (sg_homing_axes_mask & 0x03) //X or Y
|
|
|
+ tmc2130_wait_standstill_xy(1000);
|
|
|
if (sg_homing_axes_mask)
|
|
|
{
|
|
|
for (uint8_t axis = X_AXIS; axis <= Z_AXIS; axis++) //X Y and Z axes
|