1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-02-03 09:44:01 -05:00

DSD demod: allow no squelch time gate

This commit is contained in:
f4exb 2016-04-23 06:58:54 +02:00
parent cb69b55911
commit 1621b40aff
2 changed files with 12 additions and 5 deletions

View File

@ -119,18 +119,25 @@ void DSDDemod::feed(const SampleVector::const_iterator& begin, const SampleVecto
if (getMagSq() > m_squelchLevel)
{
if (m_squelchCount < m_squelchGate)
if (m_squelchGate > 0)
{
m_squelchCount++;
if (m_squelchCount < m_squelchGate) {
m_squelchCount++;
}
m_squelchOpen = m_squelchCount == m_squelchGate;
}
else
{
m_squelchOpen = true;
}
}
else
{
m_squelchCount = 0;
m_squelchOpen = false;
}
m_squelchOpen = m_squelchCount == m_squelchGate;
if (m_squelchOpen)
{
sample = demod;

View File

@ -522,7 +522,7 @@
<string>Squelch gate (ms)</string>
</property>
<property name="minimum">
<number>1</number>
<number>0</number>
</property>
<property name="maximum">
<number>50</number>