zcalibrate: fix issue when position is not defined
This commit is contained in:
parent
e09d72f12d
commit
1ff0616457
@ -135,6 +135,7 @@ class ZCalibratePanel(ScreenPanel):
|
|||||||
self.labels['popover'].show_all()
|
self.labels['popover'].show_all()
|
||||||
|
|
||||||
def start_calibration(self, widget, method):
|
def start_calibration(self, widget, method):
|
||||||
|
x_position = y_position = 0
|
||||||
self.labels['popover'].popdown()
|
self.labels['popover'].popdown()
|
||||||
if self._screen.printer.get_stat("toolhead", "homed_axes") != "xyz":
|
if self._screen.printer.get_stat("toolhead", "homed_axes") != "xyz":
|
||||||
self._screen._ws.klippy.gcode_script(KlippyGcodes.HOME)
|
self._screen._ws.klippy.gcode_script(KlippyGcodes.HOME)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user