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 %}