bed_level: Fix regex statement for screws

Regex statement for screws will now find screws in the negative 
position. Addresses #138
This commit is contained in:
Jordan Ruthe 2021-04-25 19:10:50 -04:00
parent a8fc7b6337
commit 9dce74fac1

View File

@ -33,7 +33,7 @@ class BedLevelPanel(ScreenPanel):
config_section = self._screen.printer.get_config_section(config_section_name)
for item in config_section:
logging.debug("Screws section: %s" % config_section[item])
result = re.match(r"([0-9\.]+)\s*,\s*([0-9\.]+)", config_section[item])
result = re.match(r"([\-0-9\.]+)\s*,\s*([\-0-9\.]+)", config_section[item])
if result:
screws.append([
round(float(result.group(1)),2),