1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 09:48:45 -05:00

Airspy: use device sample rate detection in libairspy by default

This commit is contained in:
f4exb 2019-06-30 03:13:07 +02:00
parent 563a4d589f
commit e317b06fc9

View File

@ -111,7 +111,12 @@ bool AirspyInput::openDevice()
return false;
}
#ifdef LIBAIRSPY_DYN_RATES
#ifdef LIBAIRSPY_DEFAULT_RATES
qDebug("AirspyInput::start: detault rates");
m_sampleRates.clear();
m_sampleRates.push_back(10000000);
m_sampleRates.push_back(2500000);
#else
uint32_t nbSampleRates;
uint32_t *sampleRates;
@ -140,11 +145,6 @@ bool AirspyInput::openDevice()
}
delete[] sampleRates;
#else
qDebug("AirspyInput::start: detault rates");
m_sampleRates.clear();
m_sampleRates.push_back(10000000);
m_sampleRates.push_back(2500000);
#endif
// MsgReportAirspy *message = MsgReportAirspy::create(m_sampleRates);