Fix potential issues with variables

This commit is contained in:
alfrix
2022-06-30 11:37:35 -03:00
committed by Alfredo Monclus
parent b611491997
commit 831db2403d
5 changed files with 11 additions and 7 deletions

View File

@@ -175,6 +175,8 @@ class FineTunePanel(ScreenPanel):
gcode = "SET_GCODE_OFFSET Z_ADJUST=-%s MOVE=1" % self.bs_delta
elif dir == "reset":
gcode = "SET_GCODE_OFFSET Z=0 MOVE=1"
else:
gcode = ""
self._screen._ws.klippy.gcode_script(gcode)