Skip to content

Commit

Permalink
Merge pull request #291 from ferrous-systems/adc-fix-chan-smp-mapping
Browse files Browse the repository at this point in the history
adc.rs: fix channel -> smp register mismatch
  • Loading branch information
Sh3Rm4n authored Oct 23, 2021
2 parents 5356750 + cd70a61 commit c99fd56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/adc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,8 @@ macro_rules! adc_hal {
7 => self.adc.smpr1.modify(|_, w| w.smp7().variant(smp.into())),
8 => self.adc.smpr1.modify(|_, w| w.smp8().variant(smp.into())),
9 => self.adc.smpr1.modify(|_, w| w.smp9().variant(smp.into())),
11 => self.adc.smpr2.modify(|_, w| w.smp10().variant(smp.into())),
10 => self.adc.smpr2.modify(|_, w| w.smp10().variant(smp.into())),
11 => self.adc.smpr2.modify(|_, w| w.smp11().variant(smp.into())),
12 => self.adc.smpr2.modify(|_, w| w.smp12().variant(smp.into())),
13 => self.adc.smpr2.modify(|_, w| w.smp13().variant(smp.into())),
14 => self.adc.smpr2.modify(|_, w| w.smp14().variant(smp.into())),
Expand Down

0 comments on commit c99fd56

Please sign in to comment.