diff options
| author | Dion Dokter <[email protected]> | 2025-05-08 13:40:21 +0200 |
|---|---|---|
| committer | Dion Dokter <[email protected]> | 2025-05-08 13:40:21 +0200 |
| commit | 65bd86f19f8b2338c4593f35ac8e44a677a2b801 (patch) | |
| tree | d733ebd79b57fe1376b93b1c5f441c4d1b139443 | |
| parent | ca5ebe859a40af38a889553334afbcc22cf1aba7 (diff) | |
Stm32: Fix opamp copy pasta mistake
| -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); |
