Fix homing Z position

Add `sync_plan_position()` after `axis_is_at_home(axis)` to keep the
planner position in sync when homing.
This commit is contained in:
Scott Lahteine 2015-04-27 20:55:19 -07:00
parent 01bedd17c9
commit c36226c4dc

View File

@ -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;