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
|
uint32_t AirspyHFInput::getSampleRateFromIndex(quint32 devSampleRateIndex) const
|
||||||
{
|
{
|
||||||
|
int index;
|
||||||
if (devSampleRateIndex >= m_sampleRates.size()) {
|
if (devSampleRateIndex >= m_sampleRates.size()) {
|
||||||
devSampleRateIndex = m_sampleRates.size() - 1;
|
index = m_sampleRates.size() - 1;
|
||||||
}
|
}
|
||||||
if (devSampleRateIndex >= 0) {
|
if (index >= 0) {
|
||||||
return m_sampleRates[devSampleRateIndex];
|
return m_sampleRates[index];
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -115,10 +115,8 @@ void RTLSDRThread::callbackIQ(const quint8* inBuf, qint32 len)
|
|||||||
// Choose between live data or replayed data
|
// Choose between live data or replayed data
|
||||||
if (replayEnabled && m_replayBuffer->useReplay()) {
|
if (replayEnabled && m_replayBuffer->useReplay()) {
|
||||||
len = m_replayBuffer->read(remaining, buf);
|
len = m_replayBuffer->read(remaining, buf);
|
||||||
qDebug() << "Replay";
|
|
||||||
} else {
|
} else {
|
||||||
len = remaining;
|
len = remaining;
|
||||||
qDebug() << "Live" << m_replayBuffer->useReplay();
|
|
||||||
}
|
}
|
||||||
remaining -= len;
|
remaining -= len;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user