Skip to content

Commit

Permalink
Don't exceed Z max in Dual X tool_change
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Nov 7, 2016
1 parent 236d87a commit 161a435
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7281,6 +7281,7 @@ void tool_change(const uint8_t tmp_extruder, const float fr_mm_s/*=0.0*/, bool n
) {
current_position[X_AXIS] = xhome;
current_position[Z_AXIS] += TOOLCHANGE_PARK_ZLIFT;
NOMORE(current_position[Z_AXIS], soft_endstop_max[Z_AXIS]);
#if ENABLED(DEBUG_LEVELING_FEATURE)
if (DEBUGGING(LEVELING)) {
SERIAL_ECHOLNPAIR("Raise to ", current_position[Z_AXIS]);
Expand Down

0 comments on commit 161a435

Please sign in to comment.