Skip to content

Commit

Permalink
Merge pull request #880 from andresmmera/QucsAttenuator_Fix_Lpad_SPAR…
Browse files Browse the repository at this point in the history
…_Block

QucsAttenuator: Ensure Zout=Zin in QW and Lpad attenuators
  • Loading branch information
ra3xdh committed Aug 1, 2024
2 parents 2d1a86d + 2bb3827 commit cf9c5e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion qucs-attenuator/qucsattenuator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,12 @@ void QucsAttenuator::slotQuit()

void QucsAttenuator::slotSetText_Zin( double val )
{
if((ComboTopology->currentIndex() == BRIDGE_TYPE) || (ComboTopology->currentIndex() == REFLECTION_TYPE)) {
if((ComboTopology->currentIndex() == BRIDGE_TYPE) ||
(ComboTopology->currentIndex() == REFLECTION_TYPE) ||
(ComboTopology->currentIndex() == L_PAD_1ST_SERIES) ||
(ComboTopology->currentIndex() == L_PAD_1ST_SHUNT) ||
(ComboTopology->currentIndex() == QW_SERIES_TYPE) ||
(ComboTopology->currentIndex() == QW_SHUNT_TYPE)) {
QSpinBox_Zout->blockSignals(true);
QSpinBox_Zout->setValue(val);
QSpinBox_Zout->blockSignals(false);
Expand Down

0 comments on commit cf9c5e1

Please sign in to comment.