Skip to content

Commit

Permalink
make sure we are on absolute positioning before parking (kyleisah#238)
Browse files Browse the repository at this point in the history
* make sure we are on absolute positioning before parking

* Update Smart_Park.cfg

make sure we're not breaking anything by saving g_code states

* Update Smart_Park.cfg
  • Loading branch information
Aibehn authored Mar 1, 2024
1 parent ff681e3 commit d657271
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Configuration/Smart_Park.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,14 @@ gcode:
)) }

{% endif %}

SAVE_GCODE_STATE NAME=Presmartpark_State # Create gcode state

G90 # Absolute positioning
{% if printer.toolhead.position.z < z_height %}
G0 Z{z_height} # Move Z to park height if current Z position is lower than z_height
{% endif %}
G0 X{x_min} Y{y_min} F{travel_speed} # Move near object area
G0 Z{z_height} # Move Z to park height

RESTORE_GCODE_STATE NAME=Presmartpark_State # Restore gcode state

0 comments on commit d657271

Please sign in to comment.