z探针校准时指定默认激活工具头为第一个头

This commit is contained in:
张开科 2024-12-13 09:20:00 +08:00
parent bce3caa409
commit 40ecbb3ea4

View File

@ -184,7 +184,8 @@ class Panel(ScreenPanel):
self._screen._ws.klippy.gcode_script("BED_MESH_CLEAR")
if method == "probe":
self._move_to_position(*self._get_probe_location())
self._screen._ws.klippy.gcode_script("PROBE_CALIBRATE")
if len(self._printer.get_tools()) > 1 and "T0" in self._printer.get_gcode_macros():
self._screen._ws.klippy.gcode_script("T0")
self._screen._ws.klippy.gcode_script("PROBE_CALIBRATE PROBE_SPEED=100")
elif method == "delta":
self._screen._ws.klippy.gcode_script("DELTA_CALIBRATE")