aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Lilleengen <[email protected]>2025-05-09 08:51:23 +0000
committerGitHub <[email protected]>2025-05-09 08:51:23 +0000
commite0920e8c66e14feb8028699fc298444d58cfa43e (patch)
treed733ebd79b57fe1376b93b1c5f441c4d1b139443
parentca5ebe859a40af38a889553334afbcc22cf1aba7 (diff)
parent65bd86f19f8b2338c4593f35ac8e44a677a2b801 (diff)
Merge pull request #4178 from diondokter/opamp-fix
Stm32: Fix opamp copy pasta mistake
-rw-r--r--embassy-stm32/src/opamp.rs2
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);