Stm32: Fix opamp copy pasta mistake
This commit is contained in:
parent
ca5ebe859a
commit
65bd86f19f
@ -239,7 +239,7 @@ impl<'d, T: Instance> OpAmp<'d, T> {
|
|||||||
|
|
||||||
T::regs().csr().modify(|w| {
|
T::regs().csr().modify(|w| {
|
||||||
w.set_vp_sel(VpSel::from_bits(pin.channel()));
|
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_pga_gain(pga_gain);
|
||||||
w.set_opaintoen(true);
|
w.set_opaintoen(true);
|
||||||
w.set_opampen(true);
|
w.set_opampen(true);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user