|
@@ -558,31 +558,7 @@ void lcd_set_home_offsets() {
|
558
|
558
|
int distance = (int32_t)encoderPosition * BABYSTEP_MULTIPLICATOR;
|
559
|
559
|
encoderPosition = 0;
|
560
|
560
|
lcdDrawUpdate = LCDVIEW_REDRAW_NOW;
|
561
|
|
- #if ENABLED(COREXY) || ENABLED(COREXZ)
|
562
|
|
- #if ENABLED(BABYSTEP_XY)
|
563
|
|
- switch(axis) {
|
564
|
|
- case X_AXIS: // X on CoreXY and CoreXZ
|
565
|
|
- thermalManager.babystepsTodo[A_AXIS] += distance * 2;
|
566
|
|
- thermalManager.babystepsTodo[CORE_AXIS_2] += distance * 2;
|
567
|
|
- break;
|
568
|
|
- case CORE_AXIS_2: // Y on CoreXY, Z on CoreXZ
|
569
|
|
- thermalManager.babystepsTodo[A_AXIS] += distance * 2;
|
570
|
|
- thermalManager.babystepsTodo[CORE_AXIS_2] -= distance * 2;
|
571
|
|
- break;
|
572
|
|
- case CORE_AXIS_3: // Z on CoreXY, Y on CoreXZ
|
573
|
|
- thermalManager.babystepsTodo[CORE_AXIS_3] += distance;
|
574
|
|
- break;
|
575
|
|
- }
|
576
|
|
- #elif ENABLED(COREXZ)
|
577
|
|
- thermalManager.babystepsTodo[A_AXIS] += distance * 2;
|
578
|
|
- thermalManager.babystepsTodo[C_AXIS] -= distance * 2;
|
579
|
|
- #else
|
580
|
|
- thermalManager.babystepsTodo[Z_AXIS] += distance;
|
581
|
|
- #endif
|
582
|
|
- #else
|
583
|
|
- thermalManager.babystepsTodo[axis] += distance;
|
584
|
|
- #endif
|
585
|
|
-
|
|
561
|
+ thermalManager.babystep_axis(axis, distance);
|
586
|
562
|
babysteps_done += distance;
|
587
|
563
|
}
|
588
|
564
|
if (lcdDrawUpdate) lcd_implementation_drawedit(msg, itostr3sign(babysteps_done));
|