Merge pull request #4178 from diondokter/opamp-fix

Stm32: Fix opamp copy pasta mistake
This commit is contained in:
Ulf Lilleengen 2025-05-09 08:51:23 +00:00 committed by GitHub
commit e0920e8c66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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);