From 4e9e452e8bed4b53eaaae8f0a69142de8aa50611 Mon Sep 17 00:00:00 2001 From: zkk <1007518571@qq.com> Date: Sat, 21 Dec 2024 14:20:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8E=A2=E9=92=88=E5=81=8F?= =?UTF-8?q?=E7=A7=BB=E5=80=BC=E6=A0=A1=E5=87=86=E6=97=B6=E5=A6=82=E6=9E=9C?= =?UTF-8?q?=E5=BD=93=E5=89=8D=E6=BF=80=E6=B4=BB=E4=B8=BA=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E5=96=B7=E5=A4=B4=E6=97=B6=E4=B8=8D=E4=BC=9A=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E6=BF=80=E6=B4=BB=E5=96=B7=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- panels/zcalibrate.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/panels/zcalibrate.py b/panels/zcalibrate.py index 3b01cbf6..2e76acff 100644 --- a/panels/zcalibrate.py +++ b/panels/zcalibrate.py @@ -185,7 +185,9 @@ class Panel(ScreenPanel): if method == "probe": self._move_to_position(*self._get_probe_location()) if len(self._printer.get_tools()) > 1 and "T0" in self._printer.get_gcode_macros(): - self._screen._ws.klippy.gcode_script("T0") + active_extruder = self._printer.get_stat("toolhead", "extruder") + if active_extruder != "extruder": + 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")