Skip to content

Commit 14f34f7

Browse files
author
Jonathan Arweck
committed
fix OPAMP opaintoen in PGA mode using internal output
1 parent 2e7e5c1 commit 14f34f7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/opamp.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ macro_rules! opamps {
813813
gain: Gain,
814814
) -> Pga<$opamp, $non_inverting, InternalOutput>
815815
{
816-
$opamp::configure_pga(InternalOutput, gain, PgaMode::Pga, true)
816+
$opamp::configure_pga(InternalOutput, gain, PgaMode::Pga, false)
817817
}
818818

819819
#[allow(private_bounds)]
@@ -827,7 +827,7 @@ macro_rules! opamps {
827827
_output: InternalOutput,
828828
gain: Gain,
829829
) -> Pga<$opamp, $non_inverting, InternalOutput> {
830-
$opamp::configure_pga(InternalOutput, gain, PgaMode::PgaExternalFilter, true)
830+
$opamp::configure_pga(InternalOutput, gain, PgaMode::PgaExternalFilter, false)
831831
}
832832

833833
#[allow(private_bounds)]
@@ -841,7 +841,7 @@ macro_rules! opamps {
841841
_output: InternalOutput,
842842
gain: Gain,
843843
) -> Pga<$opamp, $non_inverting, InternalOutput> {
844-
$opamp::configure_pga(InternalOutput, gain, PgaMode::PgaExternalBias, true)
844+
$opamp::configure_pga(InternalOutput, gain, PgaMode::PgaExternalBias, false)
845845
}
846846

847847
#[allow(private_bounds)]
@@ -857,7 +857,7 @@ macro_rules! opamps {
857857
_output: InternalOutput,
858858
gain: Gain,
859859
) -> Pga<$opamp, $non_inverting, InternalOutput> {
860-
$opamp::configure_pga(InternalOutput, gain, PgaMode::PgaExternalBiasAndFilter, true)
860+
$opamp::configure_pga(InternalOutput, gain, PgaMode::PgaExternalBiasAndFilter, false)
861861
}
862862
}
863863
}

0 commit comments

Comments
 (0)