Skip to content

Commit

Permalink
start_end: Rehome after after z-tilt or QGL
Browse files Browse the repository at this point in the history
  • Loading branch information
jschuh committed Nov 29, 2023
1 parent c2fbf56 commit 14840a4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions start_end.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ gcode:
(k,params[k]|replace('\\','\\\\')|replace('\'','\\\'')|replace('\"','\\\"'))
}{% endfor %}

# Check and propogate the printable bounds.
# Check and propogate the printable bounds.'
_km_check_and_set_print_bounds

M107 # Turn off part cooling fan in case it was on.
Expand Down Expand Up @@ -189,10 +189,6 @@ gcode:
{% else %}
M104 S{EXTRUDER} # set the final extruder target temperature
{% endif %}
{% if start_home_z_at_temp %}
_KM_PRINT_STATUS ACTION=CHANGE STATUS=homing RESET_STACK=1
G28 Z # Re-home only the Z axis now that the bed has stabilized.
{% endif %}
{% if km.start_z_tilt_adjust_at_temp %}
_KM_PRINT_STATUS ACTION=CHANGE STATUS=calibrating_z RESET_STACK=1
Z_TILT_ADJUST
Expand All @@ -201,6 +197,12 @@ gcode:
_KM_PRINT_STATUS ACTION=CHANGE STATUS=leveling_gantry RESET_STACK=1
QUAD_GANTRY_LEVEL
{% endif %}
{% if start_home_z_at_temp %}
_KM_PRINT_STATUS ACTION=CHANGE STATUS=homing RESET_STACK=1
# Re-home only the Z unless the gantry or bed were adjusted.
G28 {% if km.start_z_tilt_adjust_at_temp or
km.start_quad_gantry_level_at_temp %}XY{% endif %}Z
{% endif %}
{% if start_level_bed_at_temp %}
_KM_PRINT_STATUS ACTION=CHANGE STATUS=meshing RESET_STACK=1
_km_mesh_if_needed {% if MESH_MIN %} MESH_MIN={MESH_MIN}{% endif
Expand Down

0 comments on commit 14840a4

Please sign in to comment.