Skip to content

Commit

Permalink
idsp: bump: infinite gain limit, scale
Browse files Browse the repository at this point in the history
  • Loading branch information
jordens committed Feb 6, 2025
1 parent bcd71f7 commit 35b28b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/output_channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ impl OutputChannel {
}

fn validate_biquad(&mut self, depth: usize) -> Result<usize, &'static str> {
self.iir = self.biquad.build::<f64>(1007.0.recip(), 1.0);
self.iir = self.biquad.build::<f64>(1007.0.recip(), 1.0, 1.0);
let range = DacCode::MAX_CURRENT.min(Pwm::MAX_CURRENT_LIMIT);
self.iir
.set_max(self.iir.max().clamp(-range as _, range as _));
Expand Down

0 comments on commit 35b28b7

Please sign in to comment.