From c36226c4dc0ef7153dd7e8b81749599989ee0fbe Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 27 Apr 2015 20:55:19 -0700 Subject: [PATCH] Fix homing Z position Add `sync_plan_position()` after `axis_is_at_home(axis)` to keep the planner position in sync when homing. --- Marlin/Marlin_main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index ac86cb05b7..88813d289e 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -1596,6 +1596,7 @@ static void homeaxis(AxisEnum axis) { // Set the axis position to its home position (plus home offsets) axis_is_at_home(axis); + sync_plan_position(); destination[axis] = current_position[axis]; feedrate = 0.0;