Browse Source

DSD + NFM demods: re-itinitalize squelch open count when squelch gate changes

chirpmodem-v8.0.0
f4exb 11 years ago
parent
commit
a59404345e
  1. 1
      plugins/channel/demoddsd/dsddemod.cpp
  2. 1
      plugins/channel/demodnfm/nfmdemod.cpp

1
plugins/channel/demoddsd/dsddemod.cpp

@ -274,6 +274,7 @@ void DSDDemod::apply() @@ -274,6 +274,7 @@ void DSDDemod::apply()
if (m_config.m_squelchGate != m_running.m_squelchGate)
{
m_squelchGate = 480 * m_config.m_squelchGate; // gate is given in 10s of ms at 48000 Hz audio sample rate
m_squelchCount = 0; // reset squelch open counter
}
if (m_config.m_squelch != m_running.m_squelch)

1
plugins/channel/demodnfm/nfmdemod.cpp

@ -362,6 +362,7 @@ void NFMDemod::apply() @@ -362,6 +362,7 @@ void NFMDemod::apply()
{
m_agcAttack = 480 * m_config.m_squelchGate; // gate is given in 10s of ms at 48000 Hz audio sample rate
m_AGC.resize(m_agcAttack, m_agcLevel);
m_squelchCount = 0; // reset squelch open counter
}
if (m_config.m_squelch != m_running.m_squelch)

Loading…
Cancel
Save