bed_level: fix for printers without name/config

This commit is contained in:
alfrix 2022-08-02 13:21:03 -03:00
parent c1b34839bc
commit 0ec2baf302

@ -116,6 +116,8 @@ class BedLevelPanel(ScreenPanel):
valid_positions = False
rotation = printer_cfg.getint("screw_rotation", 0)
logging.info(f"Rotation: {rotation}")
else:
valid_positions = False
if 'bed_screws' in self._config.get_config():
rotation = self._config.get_config()['bed_screws'].getint("rotation", 0)
logging.debug(f"Rotation: {rotation}")