Skip to content

Commit

Permalink
Macros: && = and
Browse files Browse the repository at this point in the history
  • Loading branch information
miklschmidt committed Jan 9, 2024
1 parent 6428b1c commit cfbd07b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions macros.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -825,9 +825,9 @@ gcode:
{% set should_prime = printer["gcode_macro RatOS"].nozzle_priming == 'primeline' or printer["gcode_macro RatOS"].nozzle_priming == 'primeblob' %}
{% set probe_first = printer["gcode_macro RatOS"].nozzle_prime_start_y|lower == "min" or printer["gcode_macro RatOS"].nozzle_prime_start_y|float(printer.toolhead.axis_maximum.y) < printer.toolhead.axis_maximum.y / 2 %}

{% if printer.configfile.settings.beacon is defined && printer.configfile.settings.beacon.mesh_runs % 2 != 0 and probe_first %}
{% if printer.configfile.settings.beacon is defined and printer.configfile.settings.beacon.mesh_runs % 2 != 0 and probe_first %}
{% set probe_first = false %}
{% else if printer.configfile.settings.beacon is defined && printer.configfile.settings.beacon.mesh_runs % 2 == 0 and not probe_first %}
{% else if printer.configfile.settings.beacon is defined and printer.configfile.settings.beacon.mesh_runs % 2 == 0 and not probe_first %}
{% set probe_first = true %}
{% endif %}
{% if should_prime and probe_first %}
Expand Down

0 comments on commit cfbd07b

Please sign in to comment.