From b62171f350c8b49aa1cf6a0da803056de7ecfb92 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 26 Oct 2021 18:06:11 -0400 Subject: [PATCH] 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 --- klippy/extras/input_shaper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,))