Stm32: Fix opamp copy pasta mistake

This commit is contained in:
Dion Dokter 2025-05-08 13:40:21 +02:00
parent ca5ebe859a
commit 65bd86f19f

View File

@ -239,7 +239,7 @@ impl<'d, T: Instance> OpAmp<'d, T> {
T::regs().csr().modify(|w| {
w.set_vp_sel(VpSel::from_bits(pin.channel()));
w.set_vm_sel(VmSel::OUTPUT);
w.set_vm_sel(VmSel::PGA);
w.set_pga_gain(pga_gain);
w.set_opaintoen(true);
w.set_opampen(true);