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

Fix gcc warnings and remove debug

This commit is contained in:
srcejon 2023-11-22 15:12:25 +00:00
parent 25016b5b50
commit 4418fe936a
2 changed files with 4 additions and 5 deletions

View File

@ -292,11 +292,12 @@ int AirspyHFInput::getSampleRate() const
uint32_t AirspyHFInput::getSampleRateFromIndex(quint32 devSampleRateIndex) const
{
int index;
if (devSampleRateIndex >= m_sampleRates.size()) {
devSampleRateIndex = m_sampleRates.size() - 1;
index = m_sampleRates.size() - 1;
}
if (devSampleRateIndex >= 0) {
return m_sampleRates[devSampleRateIndex];
if (index >= 0) {
return m_sampleRates[index];
} else {
return 0;
}

View File

@ -115,10 +115,8 @@ void RTLSDRThread::callbackIQ(const quint8* inBuf, qint32 len)
// Choose between live data or replayed data
if (replayEnabled && m_replayBuffer->useReplay()) {
len = m_replayBuffer->read(remaining, buf);
qDebug() << "Replay";
} else {
len = remaining;
qDebug() << "Live" << m_replayBuffer->useReplay();
}
remaining -= len;