Skip to content

Commit

Permalink
Prevent accidental control mapping of noisy pots
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Horacek <petr@zlosynth.com>
  • Loading branch information
phoracek committed Nov 20, 2023
1 parent 403b7b3 commit ce6cc43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ backwards compatibility.

## Unreleased

* Prevent accidental control mapping of noisy pots.

## 1.3.0

* Display the current position within the loop.
Expand Down
2 changes: 1 addition & 1 deletion control/src/input/pot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ impl Pot {
pub fn update(&mut self, value: f32) {
self.buffer.write(value);

self.last_activation_movement = if self.traveled_more_than(0.01) {
self.last_activation_movement = if self.traveled_more_than(0.013) {
0
} else {
self.last_activation_movement.saturating_add(1)
Expand Down

0 comments on commit ce6cc43

Please sign in to comment.