zcalibrate: fix issue with delta kinematics fix #583

This commit is contained in:
alfrix 2022-04-11 22:46:13 -03:00
parent b555768980
commit 7078e52a4f

View File

@ -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)