From d038ca6ae445abdb35695f8afe29b7ae5004599f Mon Sep 17 00:00:00 2001 From: Alfredo Monclus Date: Thu, 29 Jan 2026 19:07:26 -0300 Subject: [PATCH] fix: move not loading if if printercfg is not loaded yet fixes #1642 --- panels/move.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/panels/move.py b/panels/move.py index 36ebc308..7f7c857f 100644 --- a/panels/move.py +++ b/panels/move.py @@ -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: