aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-10-26 18:06:11 -0400
committerKevin O'Connor <kevin@koconnor.net>2021-10-26 18:06:11 -0400
commitb62171f350c8b49aa1cf6a0da803056de7ecfb92 (patch)
tree80a2957e1d4b66c6b06750837c319540db96a729 /klippy
parent54e21a7c26a65fa75f3b072e5f02d277321453ca (diff)
downloadkutter-b62171f350c8b49aa1cf6a0da803056de7ecfb92.tar.gz
kutter-b62171f350c8b49aa1cf6a0da803056de7ecfb92.tar.xz
kutter-b62171f350c8b49aa1cf6a0da803056de7ecfb92.zip
input_shaper: Restore shaper_type config option
The shaper_type config option got removed in commit d5a7a7f0 - restore that option. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-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,))