|
@ -558,31 +558,7 @@ void lcd_set_home_offsets() { |
|
|
int distance = (int32_t)encoderPosition * BABYSTEP_MULTIPLICATOR; |
|
|
int distance = (int32_t)encoderPosition * BABYSTEP_MULTIPLICATOR; |
|
|
encoderPosition = 0; |
|
|
encoderPosition = 0; |
|
|
lcdDrawUpdate = LCDVIEW_REDRAW_NOW; |
|
|
lcdDrawUpdate = LCDVIEW_REDRAW_NOW; |
|
|
#if ENABLED(COREXY) || ENABLED(COREXZ) |
|
|
thermalManager.babystep_axis(axis, distance); |
|
|
#if ENABLED(BABYSTEP_XY) |
|
|
|
|
|
switch(axis) { |
|
|
|
|
|
case X_AXIS: // X on CoreXY and CoreXZ
|
|
|
|
|
|
thermalManager.babystepsTodo[A_AXIS] += distance * 2; |
|
|
|
|
|
thermalManager.babystepsTodo[CORE_AXIS_2] += distance * 2; |
|
|
|
|
|
break; |
|
|
|
|
|
case CORE_AXIS_2: // Y on CoreXY, Z on CoreXZ
|
|
|
|
|
|
thermalManager.babystepsTodo[A_AXIS] += distance * 2; |
|
|
|
|
|
thermalManager.babystepsTodo[CORE_AXIS_2] -= distance * 2; |
|
|
|
|
|
break; |
|
|
|
|
|
case CORE_AXIS_3: // Z on CoreXY, Y on CoreXZ
|
|
|
|
|
|
thermalManager.babystepsTodo[CORE_AXIS_3] += distance; |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
#elif ENABLED(COREXZ) |
|
|
|
|
|
thermalManager.babystepsTodo[A_AXIS] += distance * 2; |
|
|
|
|
|
thermalManager.babystepsTodo[C_AXIS] -= distance * 2; |
|
|
|
|
|
#else |
|
|
|
|
|
thermalManager.babystepsTodo[Z_AXIS] += distance; |
|
|
|
|
|
#endif |
|
|
|
|
|
#else |
|
|
|
|
|
thermalManager.babystepsTodo[axis] += distance; |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
babysteps_done += distance; |
|
|
babysteps_done += distance; |
|
|
} |
|
|
} |
|
|
if (lcdDrawUpdate) lcd_implementation_drawedit(msg, itostr3sign(babysteps_done)); |
|
|
if (lcdDrawUpdate) lcd_implementation_drawedit(msg, itostr3sign(babysteps_done)); |
|
|