Only calls BED_MESH_CLEAR if bed_mesh enabled (#1460)

This commit is contained in:
Scott Mikutsky authored and GitHub committed 2024-09-04 12:45:39 -03:00
1 parent 844eaba1ee
commit d99048d29f
1 file changed
+2 -1
+2 -1
View File
@@ -216,7 +216,8 @@ class Panel(ScreenPanel):
self.dropdown.set_sensitive(False)
self._screen._ws.klippy.gcode_script("SET_GCODE_OFFSET Z=0")
self._screen._ws.klippy.gcode_script("BED_MESH_CLEAR")
if self._printer.config_section_exists("bed_mesh"):
self._screen._ws.klippy.gcode_script("BED_MESH_CLEAR")
if self._printer.get_stat("toolhead", "homed_axes") != "xyz":
self._screen._ws.klippy.gcode_script("G28")
self._move_to_position(*self._get_calibration_location())