diff --git a/cfgs/TEST_SPEED.cfg b/cfgs/TEST_SPEED.cfg index 0137abd..99ff479 100644 --- a/cfgs/TEST_SPEED.cfg +++ b/cfgs/TEST_SPEED.cfg @@ -23,9 +23,19 @@ gcode: # Large pattern # Max positions, inset by BOUND - {% set x_min = printer.toolhead.axis_minimum.x + bound %} + {% set x_min = printer.toolhead.axis_minimum.x %} + {% if x_min < 0 %} + {% set x_min = 0 %} + {% endif %} + + {% set y_min = printer.toolhead.axis_minimum.y %} + {% if y_min < 0 %} + {% set y_min = 0 %} + {% endif %} + + {% set x_min = x_min + bound %} {% set x_max = printer.toolhead.axis_maximum.x - bound %} - {% set y_min = printer.toolhead.axis_minimum.y + bound %} + {% set y_min = y_min + bound %} {% set y_max = printer.toolhead.axis_maximum.y - bound %} # Small pattern at center