bed_level: fix for printers without name/config
This commit is contained in:
parent
c1b34839bc
commit
0ec2baf302
@ -116,6 +116,8 @@ class BedLevelPanel(ScreenPanel):
|
|||||||
valid_positions = False
|
valid_positions = False
|
||||||
rotation = printer_cfg.getint("screw_rotation", 0)
|
rotation = printer_cfg.getint("screw_rotation", 0)
|
||||||
logging.info(f"Rotation: {rotation}")
|
logging.info(f"Rotation: {rotation}")
|
||||||
|
else:
|
||||||
|
valid_positions = False
|
||||||
if 'bed_screws' in self._config.get_config():
|
if 'bed_screws' in self._config.get_config():
|
||||||
rotation = self._config.get_config()['bed_screws'].getint("rotation", 0)
|
rotation = self._config.get_config()['bed_screws'].getint("rotation", 0)
|
||||||
logging.debug(f"Rotation: {rotation}")
|
logging.debug(f"Rotation: {rotation}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user