aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--klippy/extras/delta_calibrate.py9
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)
######################################################################