conditional_home.cfg modified - 07/15/2025 - 05:02:43 PM

This commit is contained in:
macocha 2025-07-15 17:02:45 +00:00
parent 8c191c3dd7
commit ad803945e6

View file

@ -1,6 +1,8 @@
# Homes if not homed, skips homing if already homed.
[gcode_macro COND_G28]
gcode:
{% if "xyz" not in printer.toolhead.homed_axes %}
G28
{% endif %}
{% if "xyz" not in printer.toolhead.homed_axes %}
RESPOND PREFIX="PRINT_START: " MSG="Homing all axes"
LEDS_STATUS_HOMING # Set LEDs to homing-mode
G28 # Do the actual homing
{% endif %}