fix: move not loading if if printercfg is not loaded yet fixes #1642

This commit is contained in:
Alfredo Monclus committed 2026-01-29 19:16:36 -03:00
1 parent 4f880b833b
commit d038ca6ae4
1 file changed
+5 -1
+5 -1
View File
@@ -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: