fix: move not loading if if printercfg is not loaded yet fixes #1642
This commit is contained in:
1 parent
4f880b833b
commit
d038ca6ae4
1 file changed
+5
-1
+5
-1
@@ -65,7 +65,11 @@ class Panel(ScreenPanel):
|
||||
zm = "z-"
|
||||
zp = "z+"
|
||||
|
||||
rotation = self.ks_printer_cfg.getint("screw_rotation", 0)
|
||||
rotation = (
|
||||
0
|
||||
if self.ks_printer_cfg is None
|
||||
else self.ks_printer_cfg.getint("screw_rotation", 0)
|
||||
)
|
||||
if rotation == 90:
|
||||
xm, yp, xp, ym = ym, xm, yp, xp
|
||||
elif rotation == 180:
|
||||
|
||||
Reference in new issue
Block a user