1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-07-31 13:02:27 -04:00

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

This commit is contained in:
f4exb 2016-04-23 10:16:15 +02:00
parent 1621b40aff
commit a59404345e
2 changed files with 2 additions and 0 deletions

View File

@ -274,6 +274,7 @@ void DSDDemod::apply()
if (m_config.m_squelchGate != m_running.m_squelchGate) 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_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) if (m_config.m_squelch != m_running.m_squelch)

View File

@ -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_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_AGC.resize(m_agcAttack, m_agcLevel);
m_squelchCount = 0; // reset squelch open counter
} }
if (m_config.m_squelch != m_running.m_squelch) if (m_config.m_squelch != m_running.m_squelch)