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 3f632516de..33ad554c9b 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 92c3da350e..95027942c9 100644 --- a/plugins/samplesource/rtlsdr/rtlsdrgui.h +++ b/plugins/samplesource/rtlsdr/rtlsdrgui.h @@ -61,7 +61,7 @@ class RTLSDRSampleRates { 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 5ed11a3129..ffa4eaa960 100644 --- a/plugins/samplesource/rtlsdr/rtlsdrgui.ui +++ b/plugins/samplesource/rtlsdr/rtlsdrgui.ui @@ -204,7 +204,7 @@ Device Samplerate - 4 + 6 1