From e078c5e4c84fbae6cc4ca2ee968bb0d501a776e6 Mon Sep 17 00:00:00 2001 From: HelgeKeck Date: Sat, 2 Nov 2024 11:57:18 +0100 Subject: [PATCH] MACRO: use gcode_position for y sanity check error message --- macros/idex/vaoc.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macros/idex/vaoc.cfg b/macros/idex/vaoc.cfg index 931fdb8c..ef86e0b0 100644 --- a/macros/idex/vaoc.cfg +++ b/macros/idex/vaoc.cfg @@ -508,7 +508,7 @@ gcode: # vaoc sanity check {% if (printer.gcode_move.gcode_position.y|float - idex_ycontrolpoint)|abs > 3 %} M84 - { action_raise_error("Unexpected y-coordinate detected, VAOC aborted. Expected %.3f but got %.3f." % (idex_ycontrolpoint, printer.toolhead.position.y|float)) } + { action_raise_error("Unexpected y-coordinate detected, VAOC aborted. Expected %.3f but got %.3f." % (idex_ycontrolpoint, printer.gcode_move.gcode_position.y|float)) } {% endif %} {% if is_fixed %} {% if (idex_xcontrolpoint - expected_camera_x_position)|abs > 5 %} @@ -691,7 +691,7 @@ gcode: # vaoc sanity check {% if (printer.gcode_move.gcode_position.y|float - idex_ycontrolpoint)|abs > 3 %} M84 - { action_raise_error("Unexpected y-coordinate detected, VAOC aborted. Expected %.3f but got %.3f." % (idex_ycontrolpoint, printer.toolhead.position.y|float)) } + { action_raise_error("Unexpected y-coordinate detected, VAOC aborted. Expected %.3f but got %.3f." % (idex_ycontrolpoint, printer.gcode_move.gcode_position.y|float)) } {% endif %} {% if is_fixed %} {% if (idex_xcontrolpoint - expected_camera_x_position)|abs > 5 %}