Skip to content

Commit

Permalink
fix SAFE_TOOLCHAGE_Z
Browse files Browse the repository at this point in the history
  • Loading branch information
DerAndere1 committed Oct 1, 2024
1 parent 115360a commit 21ca8f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/module/tool_change.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,7 @@ void tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
// Raise to safe Z
#if defined(SAFE_TOOLCHANGE_START_Z)
if (can_move_away && TERN1(TOOLCHANGE_PARK, toolchange_settings.enable_park)) {
current_position.z = SUM_TERN(HAS_HOTEND_OFFSET, (SAFE_TOOLCHANGE_START_Z), hotend_offset[old_tool].z);
current_position.z = (SAFE_TOOLCHANGE_START_Z);
TERN_(HAS_SOFTWARE_ENDSTOPS, NOMORE(current_position.z, soft_endstop.max.z));
fast_line_to_current(Z_AXIS);
planner.synchronize();
Expand Down Expand Up @@ -1486,7 +1486,7 @@ void tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
// Raise to safe Z
#if defined(SAFE_TOOLCHANGE_START_Z)
if (TERN1(TOOLCHANGE_PARK, toolchange_settings.enable_park)) {
do_blocking_move_to_z(SUM_TERN(HAS_HOTEND_OFFSET, (SAFE_TOOLCHANGE_START_Z), hotend_offset[new_tool].z), planner.settings.max_feedrate_mm_s[Z_AXIS]);
do_blocking_move_to_z((SAFE_TOOLCHANGE_START_Z), planner.settings.max_feedrate_mm_s[Z_AXIS]);
}
#endif

Expand Down

0 comments on commit 21ca8f5

Please sign in to comment.