From 7078e52a4f915a7cb4e19ba9c2d16e6248b0b32b Mon Sep 17 00:00:00 2001 From: alfrix Date: Mon, 11 Apr 2022 22:46:13 -0300 Subject: [PATCH] zcalibrate: fix issue with delta kinematics fix #583 --- panels/zcalibrate.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/panels/zcalibrate.py b/panels/zcalibrate.py index 9526a350..083015df 100644 --- a/panels/zcalibrate.py +++ b/panels/zcalibrate.py @@ -44,7 +44,9 @@ class ZCalibratePanel(ScreenPanel): functions = ["endstop", "probe", "mesh", "delta", "delta_manual"] pobox = Gtk.VBox() - if not self._screen.printer.get_config_section("stepper_z")['endstop_pin'].startswith("probe"): + endstop = (self._printer.config_section_exists("stepper_z") and + not self._screen.printer.get_config_section("stepper_z")['endstop_pin'].startswith("probe")) + if endstop: endstop = self._gtk.Button(label="Endstop") endstop.connect("clicked", self.start_calibration, "endstop") pobox.pack_start(endstop, True, True, 5)