Browse Source

Reset position_shift on G28 (#15653)

pull/1/head
Daniel Callander 5 years ago
committed by Scott Lahteine
parent
commit
475041656c
  1. 5
      Marlin/src/module/motion.cpp

5
Marlin/src/module/motion.cpp

@ -1389,6 +1389,11 @@ void set_axis_is_at_home(const AxisEnum axis) {
babystep.reset_total(axis); babystep.reset_total(axis);
#endif #endif
#if HAS_POSITION_SHIFT
position_shift[axis] = 0;
update_workspace_offset(axis);
#endif
if (DEBUGGING(LEVELING)) { if (DEBUGGING(LEVELING)) {
#if HAS_HOME_OFFSET #if HAS_HOME_OFFSET
DEBUG_ECHOLNPAIR("> home_offset[", axis_codes[axis], "] = ", home_offset[axis]); DEBUG_ECHOLNPAIR("> home_offset[", axis_codes[axis], "] = ", home_offset[axis]);

Loading…
Cancel
Save