summaryrefslogtreecommitdiff
path: root/gr-uhd
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2017-06-07 11:56:01 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2017-06-07 11:56:01 -0700
commite4783ab3f1541d8ba32c0269eb30b7c06d0888c2 (patch)
treeb9d47abc2e742a19005a9060ac1154504b2f8af4 /gr-uhd
parent3821b0a0476e74f7ab40899f718498acf4d920ce (diff)
parentc1f706fb1bec6a68191d44498c70d17226bd4ea7 (diff)
Merge branch 'next' into python3
Diffstat (limited to 'gr-uhd')
-rwxr-xr-xgr-uhd/apps/uhd_fft10
1 files changed, 8 insertions, 2 deletions
diff --git a/gr-uhd/apps/uhd_fft b/gr-uhd/apps/uhd_fft
index 1f0cf1cda5..4cb5eed0d1 100755
--- a/gr-uhd/apps/uhd_fft
+++ b/gr-uhd/apps/uhd_fft
@@ -140,9 +140,15 @@ class uhd_fft(gr.top_block, Qt.QWidget, UHDApp):
self._samp_rate__tool_bar.addWidget(self._samp_rate__line_edit)
self._samp_rate__line_edit.returnPressed.connect(
lambda: self.set_samp_rate(eng_notation.str_to_num(str(self._samp_rate__line_edit.text().toAscii()))))
- self.top_grid_layout.addWidget(self._samp_rate__tool_bar, 3,2,1,2)
+ self.top_grid_layout.addWidget(self._samp_rate__tool_bar, 3, 2, 1, 2)
# Gain:
- self._gain__range = Range(self.gain_range.start(), self.gain_range.stop(), self.gain_range.step(), self.gain, 200)
+ self._gain__range = Range(
+ self.gain_range.start(),
+ self.gain_range.stop(),
+ max(self.gain_range.step(), 1.0),
+ self.gain,
+ 200
+ )
self._gain__win = RangeWidget(self._gain__range, self.set_gain, "RX Gain", "counter_slider", float)
self.top_grid_layout.addWidget(self._gain__win, 2,0,1,4)
# Center frequency: