job_status: show save to endstop to apply offset for deltas close #916

Z_OFFSET_APPLY_ENDSTOP works in deltas since f078a27905
This commit is contained in:
alfrix 2023-07-20 21:07:50 -03:00 committed by Alfredo Monclus
parent ae03e7d55d
commit 7ba9e49374

View File

@ -741,8 +741,13 @@ class JobStatusPanel(ScreenPanel):
offset = self._printer.get_stat("gcode_move", "homing_origin")
self.zoffset = float(offset[2]) if offset else 0
if self.zoffset != 0:
endstop = (self._printer.config_section_exists("stepper_z") and
not self._printer.get_config_section("stepper_z")['endstop_pin'].startswith("probe"))
endstop = (
(
self._printer.config_section_exists("stepper_z")
and not self._printer.get_config_section("stepper_z")['endstop_pin'].startswith("probe")
)
or "delta" in self._printer.get_config_section("printer")['kinematics']
)
if endstop:
self.buttons['button_grid'].attach(self.buttons["save_offset_endstop"], 0, 0, 1, 1)
else: