diff --git a/cfgs/macros.cfg b/cfgs/macros.cfg index 401a5cf..89a9aa9 100644 --- a/cfgs/macros.cfg +++ b/cfgs/macros.cfg @@ -89,14 +89,15 @@ gcode: {% set y_safe = -20.0 %} {% endif %} - {% if printer.toolhead.position.z < (max_z - 2) %} - {% set z_safe = 2.0 %} + {% set lift_height = 25.0 %} + {% if printer.toolhead.position.z < (max_z - lift_height) %} + {% set z_safe = lift_height %} {% else %} {% set z_safe = max_z - printer.toolhead.position.z %} {% endif %} G0 Z{z_safe} F2000 ; move nozzle up - G0 X{x_safe} Y{y_safe} F7200 ; move nozzle to remove stringing + G0 X{x_safe} Y{y_safe} F9000 ; move nozzle to remove stringing TURN_OFF_HEATERS M107 ; turn off fan G90 ; absolute positioning