zcalibrate: fix issue when position is not defined

This commit is contained in:
alfrix 2022-04-03 06:15:22 -03:00
parent e09d72f12d
commit 1ff0616457

View File

@ -135,6 +135,7 @@ class ZCalibratePanel(ScreenPanel):
self.labels['popover'].show_all()
def start_calibration(self, widget, method):
x_position = y_position = 0
self.labels['popover'].popdown()
if self._screen.printer.get_stat("toolhead", "homed_axes") != "xyz":
self._screen._ws.klippy.gcode_script(KlippyGcodes.HOME)