SDRdaemon: ensure there are enough reads to calculate auto r/w unbalance correction

This commit is contained in:
f4exb 2016-03-19 05:15:34 +01:00
parent a009d352be
commit 0ba624dc37
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ uint8_t *SDRdaemonBuffer::readData(int32_t length)
m_skewCorrection = (dIndex < m_rawSize / 10); // close by 10%
m_nbCycles++;
// auto R/W balance calculation
if (m_nbReads && m_autoCorrBuffer)
if ((m_nbReads > 5*m_rawBufferLengthSeconds) && m_autoCorrBuffer)
{
int32_t dBytes;