Browse Source

Fix homing Z position

Add `sync_plan_position()` after `axis_is_at_home(axis)` to keep the
planner position in sync when homing.
pull/1/head
Scott Lahteine 10 years ago
parent
commit
c36226c4dc
  1. 1
      Marlin/Marlin_main.cpp

1
Marlin/Marlin_main.cpp

@ -1596,6 +1596,7 @@ static void homeaxis(AxisEnum axis) {
// Set the axis position to its home position (plus home offsets) // Set the axis position to its home position (plus home offsets)
axis_is_at_home(axis); axis_is_at_home(axis);
sync_plan_position();
destination[axis] = current_position[axis]; destination[axis] = current_position[axis];
feedrate = 0.0; feedrate = 0.0;

Loading…
Cancel
Save