nrf/pwm: fix bad pin assignment.

This commit is contained in:
Dario Nieuwenhuis 2024-11-04 18:41:31 +01:00
parent 6fe798d680
commit fff304b3de

View File

@ -681,7 +681,7 @@ impl<'d, T: Instance> SimplePwm<'d, T> {
pin.set_low();
pin.conf().write(|w| w.set_dir(gpiovals::Dir::OUTPUT));
}
r.psel().out(i).write_value(ch0.psel_bits());
r.psel().out(i).write_value(ch.psel_bits());
}
let pwm = Self {