mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-12-16 05:09:56 +01:00
sosfilter: fix case if no notch is defined
Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
This commit is contained in:
committed by
KevinOConnor
parent
79189203e2
commit
900c908db8
@@ -40,6 +40,8 @@ class DigitalFilter:
|
||||
if lowpass:
|
||||
self.filter_sections.append(
|
||||
self._butter(lowpass, "lowpass", lowpass_order))
|
||||
if notches is None:
|
||||
notches = []
|
||||
for notch_freq in notches:
|
||||
self.filter_sections.append(self._notch(notch_freq, notch_quality))
|
||||
if len(self.filter_sections) > 0:
|
||||
|
||||
Reference in New Issue
Block a user