Skip to content

Commit

Permalink
MACRO: fix wrong beacon_contact_wipe_before_true_zero definition
Browse files Browse the repository at this point in the history
  • Loading branch information
HelgeKeck committed Oct 6, 2024
1 parent c82d87a commit 8ed6208
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions macros.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ gcode:

# beacon contact config
{% set beacon_contact_start_print_true_zero = true if printer["gcode_macro RatOS"].beacon_contact_start_print_true_zero|default(false)|lower == 'true' else false %}
{% set variable_beacon_contact_wipe_before_true_zero = true if printer["gcode_macro RatOS"].beacon_contact_wipe_before_true_zero|default(false)|lower == 'true' else false %}
{% set beacon_contact_wipe_before_true_zero = true if printer["gcode_macro RatOS"].beacon_contact_wipe_before_true_zero|default(false)|lower == 'true' else false %}

# wait for extruder to be preheated
{% if printer["gcode_macro RatOS"].preheat_extruder|lower == 'true' %}
Expand Down Expand Up @@ -971,7 +971,7 @@ gcode:

# beacon contact homing with optional wipe
{% if printer.configfile.settings.beacon is defined and beacon_contact_start_print_true_zero %}
{% if variable_beacon_contact_wipe_before_true_zero %}
{% if beacon_contact_wipe_before_true_zero %}
_START_PRINT_AFTER_HEATING_BED_PROBE_FOR_WIPE
{% endif %}
_START_PRINT_AFTER_HEATING_CONTACT_WITH_OPTIONAL_WIPE
Expand Down Expand Up @@ -1015,10 +1015,10 @@ gcode:
{% set beacon_contact_start_print_true_zero = true if printer["gcode_macro RatOS"].beacon_contact_start_print_true_zero|default(false)|lower == 'true' else false %}
{% set beacon_contact_true_zero_location = printer["gcode_macro RatOS"].beacon_contact_true_zero_location|default("front")|lower %}
{% set beacon_contact_true_zero_margin_x = printer["gcode_macro RatOS"].beacon_contact_true_zero_margin_x|default(30)|int %}
{% set variable_beacon_contact_wipe_before_true_zero = true if printer["gcode_macro RatOS"].variable_beacon_contact_wipe_before_true_zero|default(false)|lower == 'true' else false %}
{% set beacon_contact_wipe_before_true_zero = true if printer["gcode_macro RatOS"].beacon_contact_wipe_before_true_zero|default(false)|lower == 'true' else false %}

# wipe before z-calibration
{% if variable_beacon_contact_wipe_before_true_zero %}
{% if beacon_contact_wipe_before_true_zero %}
{% if printer.beacon.last_probe_result|lower == "ok" %}
{% set last_z_offset = printer.beacon.last_z_result %}
RATOS_ECHO MSG="Auto calibration nozzle wipe with probe result {last_z_offset}..."
Expand Down

0 comments on commit 8ed6208

Please sign in to comment.