Skip to content

Commit

Permalink
reverted PARK and PARK_FRONT to fail if axis are not homed
Browse files Browse the repository at this point in the history
  • Loading branch information
Frix-x authored Mar 4, 2024
1 parent 2e021e7 commit 228f5bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion macros/base/control.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ description: Turn off the printer and shutdown the host
gcode:
_OFF ; Shortcut to turn everything off (see above for this macro)
{action_respond_info('action:poweroff')} ; OctoPrint compatible host shutdown
{action_call_remote_method("shutdown_machine")} ; Moonraker compatible host shutdown
{action_call_remote_method("shutdown_machine")} ; Moonraker compatible host shutdown
8 changes: 6 additions & 2 deletions macros/base/park.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ gcode:
{% set z_safe = max_z %}
{% endif %}

_CG28 ; home if not already homed
{% if printer.toolhead.homed_axes != "xyz" %}
{action_raise_error("Cannot park the toolhead because axis are not homed!")}
{% endif %}

{% if printer.extruder.can_extrude %}
{% if firmware_retraction_enabled %} # use firmware_retraction parameter for retract (in case firmware retraction is selected in printer.cfg)
Expand Down Expand Up @@ -56,7 +58,9 @@ gcode:
{% set St = printer["gcode_macro _USER_VARIABLES"].travel_speed * 60 %}
{% set Sz = printer["gcode_macro _USER_VARIABLES"].z_drop_speed * 60 %}

_CG28 ; home if not already homed
{% if printer.toolhead.homed_axes != "xyz" %}
{action_raise_error("Cannot park the toolhead in maintenance position because axis are not homed!")}
{% endif %}

SAVE_GCODE_STATE NAME=PARK_FRONT
G90 ; absolute positioning
Expand Down

0 comments on commit 228f5bc

Please sign in to comment.