This commit is contained in:
Robert Jördens 2021-02-01 12:40:12 +01:00
parent 7748d8eb54
commit 965c6335e1
1 changed files with 4 additions and 1 deletions

View File

@ -14,7 +14,10 @@ impl Lockin {
/// Create a new Lockin with given IIR coefficients.
pub fn new(ba: Vec5) -> Self {
Self {
iir: IIR { ba, ..Default::default() },
iir: IIR {
ba,
..Default::default()
},
state: [Vec5::default(); 2],
}
}