Skip to content

Commit

Permalink
Update prime_line.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
elpopo-eng committed Feb 25, 2024
1 parent 0870c2f commit 9747667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/helpers/prime_line.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ gcode:
# Redefine start position from fl_size
{% set fl_size=printer['gcode_macro START_PRINT'].fl_size %}
{% if fl_size != "0_0_0_0" %}
{% set prime_line_margin = printer["gcode_macro _USER_VARIABLES"].prime_line_margin|default(5.0|float) %}
{% set prime_line_margin = printer["gcode_macro _USER_VARIABLES"].prime_line_margin|default(5.0)|float %}
{% set prime_line_margin = params.LINE_MARGIN|default(prime_line_margin|float) %}
{% set min_x, min_y, max_x, max_y = fl_size.split("_")|map('float') %}
{% set prime_line_x = [[prime_line_x, min_x - prime_line_margin] | max, max_x + prime_line_margin] | min %}
Expand Down

0 comments on commit 9747667

Please sign in to comment.