From ab023bb61da0a3d1929c647af5fd9706fc91e903 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 19 Aug 2021 14:54:10 -0400 Subject: [PATCH] delta_calibrate: Use config.getfloatlist() for parsing "stable positions" Signed-off-by: Kevin O'Connor --- klippy/extras/delta_calibrate.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/klippy/extras/delta_calibrate.py b/klippy/extras/delta_calibrate.py index 4301c89a..04cbe29e 100644 --- a/klippy/extras/delta_calibrate.py +++ b/klippy/extras/delta_calibrate.py @@ -14,14 +14,7 @@ from . import probe # Load a stable position from a config entry def load_config_stable(config, option): - spos = config.get(option) - try: - sa, sb, sc = map(float, spos.split(',')) - except: - msg = "Unable to parse stable position '%s'" % (spos,) - logging.exception(msg) - raise config.error(msg) - return sa, sb, sc + return config.getfloatlist(option, count=3) ######################################################################