mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-12-25 00:58:33 -07:00
sosfilter: fix case if no notch is defined
Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
This commit is contained in:
parent
79189203e2
commit
900c908db8
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue