From 51c7b5d46f1d2e5eb9cd7f0db67499591f6ad434 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 22 Jan 2018 06:10:35 -0600 Subject: [PATCH] Fix set_home_offset bug from bad porting --- Marlin/src/module/motion.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Marlin/src/module/motion.cpp b/Marlin/src/module/motion.cpp index b1155e7f0..90960ad8c 100644 --- a/Marlin/src/module/motion.cpp +++ b/Marlin/src/module/motion.cpp @@ -1376,15 +1376,10 @@ void homeaxis(const AxisEnum axis) { #if HAS_M206_COMMAND /** - * Change the home offset for an axis, update the current - * position and the software endstops to retain the same - * relative distance to the new home. - * - * Since this changes the current_position, code should - * call sync_plan_position soon after this. + * Change the home offset for an axis. + * Also refreshes the workspace offset. */ void set_home_offset(const AxisEnum axis, const float v) { - current_position[axis] += v - home_offset[axis]; home_offset[axis] = v; update_software_endstops(axis); }