Reset position_shift on G28 (#15653)

This commit is contained in:
Daniel Callander 2019-10-24 18:20:09 +01:00 committed by Scott Lahteine
parent 04a55c9188
commit 475041656c

View File

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