mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-23 00:18:37 -05:00
SDRdaemon: ensure there are enough reads to calculate auto r/w unbalance correction
This commit is contained in:
parent
a009d352be
commit
0ba624dc37
@ -258,7 +258,7 @@ uint8_t *SDRdaemonBuffer::readData(int32_t length)
|
|||||||
m_skewCorrection = (dIndex < m_rawSize / 10); // close by 10%
|
m_skewCorrection = (dIndex < m_rawSize / 10); // close by 10%
|
||||||
m_nbCycles++;
|
m_nbCycles++;
|
||||||
// auto R/W balance calculation
|
// auto R/W balance calculation
|
||||||
if (m_nbReads && m_autoCorrBuffer)
|
if ((m_nbReads > 5*m_rawBufferLengthSeconds) && m_autoCorrBuffer)
|
||||||
{
|
{
|
||||||
int32_t dBytes;
|
int32_t dBytes;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user