aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--klippy/extras/input_shaper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/extras/input_shaper.py b/klippy/extras/input_shaper.py
index c4963c8d..fe1271d4 100644
--- a/klippy/extras/input_shaper.py
+++ b/klippy/extras/input_shaper.py
@@ -12,7 +12,8 @@ class InputShaperParams:
def __init__(self, axis, config):
self.axis = axis
self.shapers = {s.name : s.init_func for s in shaper_defs.INPUT_SHAPERS}
- self.shaper_type = config.get('shaper_type_' + axis, 'mzv').lower()
+ shaper_type = config.get('shaper_type', 'mzv')
+ self.shaper_type = config.get('shaper_type_' + axis, shaper_type)
if self.shaper_type not in self.shapers:
raise config.error(
'Unsupported shaper type: %s' % (self.shaper_type,))