diff --git a/macros/base/probing/overides/dockable_probe_overides.cfg b/macros/base/probing/overides/dockable_probe_overides.cfg index 045381596..a1e0d409d 100644 --- a/macros/base/probing/overides/dockable_probe_overides.cfg +++ b/macros/base/probing/overides/dockable_probe_overides.cfg @@ -23,8 +23,8 @@ gcode: # Safety check to protect against PROBE_CALIBRATE performed outside the bed {% if (printer['gcode_move'].position.x + probe_offset_x) >= max_bed_x or (printer['gcode_move'].position.y + probe_offset_y) >= max_bed_y - or (printer['gcode_move'].position.x + probe_offset_x) <= max_bed_x - or (printer['gcode_move'].position.y + probe_offset_y) <= max_bed_y %} + or (printer['gcode_move'].position.x + probe_offset_x) <= min_bed_x + or (printer['gcode_move'].position.y + probe_offset_y) <= min_bed_y %} { action_raise_error("You must perform PROBE_CALIBRATE with the probe inside the BED area, check variables min/max_bed_xy !") } {% endif %} @@ -72,8 +72,8 @@ gcode: # Safety check to protect against PROBE_ACCURACY performed outside the bed {% if (printer['gcode_move'].position.x + probe_offset_x) >= max_bed_x or (printer['gcode_move'].position.y + probe_offset_y) >= max_bed_y - or (printer['gcode_move'].position.x + probe_offset_x) <= max_bed_x - or (printer['gcode_move'].position.y + probe_offset_y) <= max_bed_y %} + or (printer['gcode_move'].position.x + probe_offset_x) <= min_bed_x + or (printer['gcode_move'].position.y + probe_offset_y) <= min_bed_y %} { action_raise_error("You must perform PROBE_ACCURACY with the probe inside the BED area, check variables min/max_bed_xy !") } {% endif %}