1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

ATV Demod: use black level limit to reset line sync counter

This commit is contained in:
f4exb 2017-03-29 08:27:47 +02:00
parent 284c56188c
commit e4d62eff4f

View File

@ -457,16 +457,16 @@ void ATVDemod::demod(Complex& c)
if (m_intColIndex >= intSynchroTimeSamples)
{
//Floor Detection 0
if (fltVal <= m_objRunning.m_fltVoltLevelSynchroTop)
if (fltVal < m_objRunning.m_fltVoltLevelSynchroTop)
{
m_intSynchroPoints++;
}
else
else if (fltVal > m_objRunning.m_fltVoltLevelSynchroBlack)
{
m_intSynchroPoints = 0;
}
if (m_intSynchroPoints >= m_intNumberSamplePerTop)
if (m_intSynchroPoints > m_intNumberSamplePerTop)
{
m_blnSynchroDetected = true;
m_intSynchroPoints = 0;