Skip to content

Commit

Permalink
RTL-SDR input: fixed sample rate slider range and add one more sample…
Browse files Browse the repository at this point in the history
… rate
  • Loading branch information
f4exb committed Dec 27, 2015
1 parent 8f0af54 commit 144462d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/samplesource/rtlsdr/rtlsdrgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion plugins/samplesource/rtlsdr/rtlsdrgui.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down
2 changes: 1 addition & 1 deletion plugins/samplesource/rtlsdr/rtlsdrgui.ui
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
<string>Device Samplerate</string>
</property>
<property name="maximum">
<number>4</number>
<number>6</number>
</property>
<property name="pageStep">
<number>1</number>
Expand Down

0 comments on commit 144462d

Please sign in to comment.