From 2addcf1e8744cd300eb54e0a678f3952b7255f72 Mon Sep 17 00:00:00 2001 From: Bassam Husain Date: Sat, 27 Dec 2025 00:06:41 -0500 Subject: [PATCH] Adjust TEST_SPEED; needs testing. --- cfgs/TEST_SPEED.cfg | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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