Skip to content

Commit

Permalink
MACRO: use gcode_position for y sanity check error message
Browse files Browse the repository at this point in the history
  • Loading branch information
HelgeKeck committed Nov 2, 2024
1 parent cdb8c9e commit e078c5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions macros/idex/vaoc.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down Expand Up @@ -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 %}
Expand Down

0 comments on commit e078c5e

Please sign in to comment.