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:
parent
25016b5b50
commit
4418fe936a
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user