diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-08-19 14:54:10 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-08-21 18:08:11 -0400 |
commit | ab023bb61da0a3d1929c647af5fd9706fc91e903 (patch) | |
tree | f12ce71332767299941c0ed8241a508b5f275c6e /klippy/extras | |
parent | 99b0cacf3b87ae39d6708721e279135547d0b53f (diff) | |
download | kutter-ab023bb61da0a3d1929c647af5fd9706fc91e903.tar.gz kutter-ab023bb61da0a3d1929c647af5fd9706fc91e903.tar.xz kutter-ab023bb61da0a3d1929c647af5fd9706fc91e903.zip |
delta_calibrate: Use config.getfloatlist() for parsing "stable positions"
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras')
-rw-r--r-- | klippy/extras/delta_calibrate.py | 9 |
1 files changed, 1 insertions, 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) ###################################################################### |