Skip to content

Commit

Permalink
Bed mesh will be recreated when an existing one isn't found
Browse files Browse the repository at this point in the history
  • Loading branch information
Turge08 authored Dec 9, 2021
1 parent 3a8e762 commit 163133e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions print_area_bed_mesh.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[gcode_macro BED_MESH_CALIBRATE]
# Bed mesh override with automatic probe/bltouch offset calculation
# Works with Klicky Probe on Voron
# November 27, 2021
# November 24, 2021
# Steve Turgeon
rename_existing: _BED_MESH_CALIBRATE
; Do not change any of the existing values below.
Expand All @@ -22,7 +22,11 @@ gcode:
{% if params.FORCE_NEW_MESH != null %}
{ action_respond_info("Force New Mesh: %s" % (params.FORCE_NEW_MESH)) }
{% endif %}

{% if printer["bed_mesh"].profile_name == '' %}
{ action_respond_info("No existing bed mesh found.") }
{% set last_area_end_x=-1 %}
{% endif %}

{% if printer.toolhead.homed_axes != "xyz" %}
G28
{% endif %}
Expand Down

0 comments on commit 163133e

Please sign in to comment.