Skip to content

Commit

Permalink
MACRO: make SAVE_Z_OFFSET work for all probe types
Browse files Browse the repository at this point in the history
  • Loading branch information
HelgeKeck committed Jun 19, 2024
1 parent f7b2e7a commit 02e72ca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions macros/util.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -301,3 +301,12 @@ gcode:
[gcode_macro _CONSOLE_SAVE_CONFIG]
gcode:
M118 Click <a class="command text--blue">SAVE_CONFIG</a> to save the settings to your printer.cfg.


[gcode_macro SAVE_Z_OFFSET]
gcode:
{% if printer.configfile.settings.beacon is defined %}
_BEACON_APPLY_MULTIPLIER
{% else %}
Z_OFFSET_APPLY_PROBE
{% endif %}
2 changes: 1 addition & 1 deletion z-probe/beacon.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ gcode:



[gcode_macro SAVE_Z_OFFSET]
[gcode_macro _BEACON_APPLY_MULTIPLIER]
gcode:
# config
{% set default_toolhead = printer["gcode_macro RatOS"].default_toolhead|default(0)|int %}
Expand Down

0 comments on commit 02e72ca

Please sign in to comment.