From 144462d57b462c413be572ce0325337419eb891b Mon Sep 17 00:00:00 2001 From: f4exb Date: Sun, 27 Dec 2015 04:04:24 +0100 Subject: [PATCH] RTL-SDR input: fixed sample rate slider range and add one more sample rate --- plugins/samplesource/rtlsdr/rtlsdrgui.cpp | 4 ++-- plugins/samplesource/rtlsdr/rtlsdrgui.h | 2 +- plugins/samplesource/rtlsdr/rtlsdrgui.ui | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/samplesource/rtlsdr/rtlsdrgui.cpp b/plugins/samplesource/rtlsdr/rtlsdrgui.cpp index 3f632516d..33ad554c9 100644 --- a/plugins/samplesource/rtlsdr/rtlsdrgui.cpp +++ b/plugins/samplesource/rtlsdr/rtlsdrgui.cpp @@ -273,8 +273,8 @@ void RTLSDRGui::on_checkBox_stateChanged(int state) sendSettings(); } -unsigned int RTLSDRSampleRates::m_rates[] = {250, 1000, 1152, 1536, 2304, 2400}; -unsigned int RTLSDRSampleRates::m_nb_rates = 6; +unsigned int RTLSDRSampleRates::m_rates[] = {250, 1000, 1152, 1200, 1536, 2304, 2400}; +unsigned int RTLSDRSampleRates::m_nb_rates = 7; unsigned int RTLSDRSampleRates::getRate(unsigned int rate_index) { diff --git a/plugins/samplesource/rtlsdr/rtlsdrgui.h b/plugins/samplesource/rtlsdr/rtlsdrgui.h index 92c3da350..95027942c 100644 --- a/plugins/samplesource/rtlsdr/rtlsdrgui.h +++ b/plugins/samplesource/rtlsdr/rtlsdrgui.h @@ -61,7 +61,7 @@ public: static unsigned int getRate(unsigned int rate_index); static unsigned int getRateIndex(unsigned int rate); private: - static unsigned int m_rates[6]; + static unsigned int m_rates[7]; static unsigned int m_nb_rates; }; diff --git a/plugins/samplesource/rtlsdr/rtlsdrgui.ui b/plugins/samplesource/rtlsdr/rtlsdrgui.ui index 5ed11a312..ffa4eaa96 100644 --- a/plugins/samplesource/rtlsdr/rtlsdrgui.ui +++ b/plugins/samplesource/rtlsdr/rtlsdrgui.ui @@ -204,7 +204,7 @@ Device Samplerate - 4 + 6 1