bed_level: hotfix for b6199a4
This commit is contained in:
parent
ddd7518841
commit
fe664b44a5
@ -80,6 +80,9 @@ class Panel(ScreenPanel):
|
|||||||
|
|
||||||
self.screws = new_screws
|
self.screws = new_screws
|
||||||
logging.info(f"screws with offset: {self.screws}")
|
logging.info(f"screws with offset: {self.screws}")
|
||||||
|
elif "bed_screws" in self._printer.get_config_section_list():
|
||||||
|
self.screws = self._get_screws("bed_screws")
|
||||||
|
logging.info(f"bed_screws: {self.screws}")
|
||||||
|
|
||||||
nscrews = len(self.screws)
|
nscrews = len(self.screws)
|
||||||
# KS config
|
# KS config
|
||||||
@ -107,9 +110,6 @@ class Panel(ScreenPanel):
|
|||||||
if nscrews in (3, 5, 7):
|
if nscrews in (3, 5, 7):
|
||||||
valid_positions = False
|
valid_positions = False
|
||||||
screw_positions = valid_screws
|
screw_positions = valid_screws
|
||||||
if 'bed_screws' in self._config.get_config():
|
|
||||||
rotation = self._config.get_config()['bed_screws'].getint("rotation", 0)
|
|
||||||
logging.debug(f"Rotation: {rotation}")
|
|
||||||
|
|
||||||
# get dimensions
|
# get dimensions
|
||||||
x_positions = {x[0] for x in self.screws}
|
x_positions = {x[0] for x in self.screws}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user