Bug: There are at most 18 channels for the ADC.

This commit is contained in:
Daniel Igaz 2024-04-16 20:27:12 +02:00
parent bd13b5c060
commit 32b1b4067f

View File

@ -170,7 +170,7 @@ impl<'d, T: Instance> Adc<'d, T> {
fn configure_differential_inputs(&mut self) {
T::regs().difsel().modify(|w| {
for n in 0..20 {
for n in 0..18 {
w.set_difsel(n, Difsel::SINGLEENDED);
}
});