Skip to content

Commit

Permalink
free_running() should take an AdcChannel
Browse files Browse the repository at this point in the history
  • Loading branch information
jannic committed Jan 3, 2024
1 parent abcb4c6 commit af24c28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rp2040-hal/src/adc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ impl Adc {
}

/// Enable free-running mode by setting the start_many flag.
pub fn free_running<T: AnyPin>(&mut self, pin: &AdcPin<T>) {
pub fn free_running(&mut self, pin: &dyn AdcChannel) {
self.device
.cs
.modify(|_, w| w.ainsel().variant(pin.channel()).start_many().set_bit());
Expand Down

0 comments on commit af24c28

Please sign in to comment.