Clean up LCD Manual Move / UBL Mesh Edit (#18373)
This commit is contained in:
@ -1316,16 +1316,18 @@ void do_homing_move(const AxisEnum axis, const float distance, const feedRate_t
|
||||
current_position[axis] = distance;
|
||||
line_to_current_position(real_fr_mm_s);
|
||||
#else
|
||||
// Get the ABC or XYZ positions in mm
|
||||
abce_pos_t target = planner.get_axis_positions_mm();
|
||||
target[axis] = 0;
|
||||
planner.set_machine_position_mm(target);
|
||||
target[axis] = distance;
|
||||
|
||||
target[axis] = 0; // Set the single homing axis to 0
|
||||
planner.set_machine_position_mm(target); // Update the machine position
|
||||
|
||||
#if HAS_DIST_MM_ARG
|
||||
const xyze_float_t cart_dist_mm{0};
|
||||
#endif
|
||||
|
||||
// Set delta/cartesian axes directly
|
||||
target[axis] = distance; // The move will be towards the endstop
|
||||
planner.buffer_segment(target
|
||||
#if HAS_DIST_MM_ARG
|
||||
, cart_dist_mm
|
||||
|
Reference in New Issue
Block a user