Bug: There are at most 18 channels for the ADC.
This commit is contained in:
parent
bd13b5c060
commit
32b1b4067f
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ impl<'d, T: Instance> Adc<'d, T> {
|
||||||
|
|
||||||
fn configure_differential_inputs(&mut self) {
|
fn configure_differential_inputs(&mut self) {
|
||||||
T::regs().difsel().modify(|w| {
|
T::regs().difsel().modify(|w| {
|
||||||
for n in 0..20 {
|
for n in 0..18 {
|
||||||
w.set_difsel(n, Difsel::SINGLEENDED);
|
w.set_difsel(n, Difsel::SINGLEENDED);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue