Bug: There are at most 18 channels for the ADC.
This commit is contained in:
parent
bd13b5c060
commit
32b1b4067f
@ -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…
x
Reference in New Issue
Block a user