diff options
| -rw-r--r-- | embassy-stm32/src/opamp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/opamp.rs b/embassy-stm32/src/opamp.rs index b368df6c3..2eb2e61c1 100644 --- a/embassy-stm32/src/opamp.rs +++ b/embassy-stm32/src/opamp.rs | |||
| @@ -239,7 +239,7 @@ impl<'d, T: Instance> OpAmp<'d, T> { | |||
| 239 | 239 | ||
| 240 | T::regs().csr().modify(|w| { | 240 | T::regs().csr().modify(|w| { |
| 241 | w.set_vp_sel(VpSel::from_bits(pin.channel())); | 241 | w.set_vp_sel(VpSel::from_bits(pin.channel())); |
| 242 | w.set_vm_sel(VmSel::OUTPUT); | 242 | w.set_vm_sel(VmSel::PGA); |
| 243 | w.set_pga_gain(pga_gain); | 243 | w.set_pga_gain(pga_gain); |
| 244 | w.set_opaintoen(true); | 244 | w.set_opaintoen(true); |
| 245 | w.set_opampen(true); | 245 | w.set_opampen(true); |
