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

This commit is contained in:
macocha 2025-07-15 17:04:08 +00:00
parent 8775b3ca28
commit 9fdab3f41c

View file

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