Skip to content

Commit

Permalink
πŸ› Fix extra E move in toolchange with ..._NO_RETURN (MarlinFirmware#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
bob-anthony authored and mh-dm committed May 15, 2022
1 parent de9f9dc commit f1f2a4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Marlin/src/module/tool_change.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -954,11 +954,11 @@ void fast_line_to_current(const AxisEnum fr_axis) { _line_to_current(fr_axis, 0.
#if ENABLED(TOOLCHANGE_PARK)
if (ok) {
#if ENABLED(TOOLCHANGE_NO_RETURN)
destination.set(current_position.x, current_position.y);
prepare_internal_move_to_destination(planner.settings.max_feedrate_mm_s[Z_AXIS]);
#else
prepare_internal_move_to_destination(MMM_TO_MMS(TOOLCHANGE_PARK_XY_FEEDRATE));
const float temp = destination.z;
destination = current_position;
destination.z = temp.z;
#endif
prepare_internal_move_to_destination(TERN(TOOLCHANGE_NO_RETURN, planner.settings.max_feedrate_mm_s[Z_AXIS], MMM_TO_MMS(TOOLCHANGE_PARK_XY_FEEDRATE)));
}
#endif

Expand Down

0 comments on commit f1f2a4b

Please sign in to comment.