Skip to content

Commit 161a435

Browse files
committed
Don't exceed Z max in Dual X tool_change
1 parent 236d87a commit 161a435

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Marlin/Marlin_main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7281,6 +7281,7 @@ void tool_change(const uint8_t tmp_extruder, const float fr_mm_s/*=0.0*/, bool n
72817281
) {
72827282
current_position[X_AXIS] = xhome;
72837283
current_position[Z_AXIS] += TOOLCHANGE_PARK_ZLIFT;
7284+
NOMORE(current_position[Z_AXIS], soft_endstop_max[Z_AXIS]);
72847285
#if ENABLED(DEBUG_LEVELING_FEATURE)
72857286
if (DEBUGGING(LEVELING)) {
72867287
SERIAL_ECHOLNPAIR("Raise to ", current_position[Z_AXIS]);

0 commit comments

Comments
 (0)