From e317b06fc982d0a9b827ddc6d88c89a65cb1bbb5 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sun, 30 Jun 2019 03:13:07 +0200 Subject: [PATCH] Airspy: use device sample rate detection in libairspy by default --- plugins/samplesource/airspy/airspyinput.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/samplesource/airspy/airspyinput.cpp b/plugins/samplesource/airspy/airspyinput.cpp index 9d10928a1..156186acf 100644 --- a/plugins/samplesource/airspy/airspyinput.cpp +++ b/plugins/samplesource/airspy/airspyinput.cpp @@ -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);