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:
parent
cb69b55911
commit
1621b40aff
@ -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;
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user