diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2017-06-07 11:55:52 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2017-06-07 11:55:52 -0700 |
commit | c1f706fb1bec6a68191d44498c70d17226bd4ea7 (patch) | |
tree | 729de66f57cb70e67839c9b363d68fe34840784b /gr-uhd | |
parent | 6ca6b47c53f4767a3f6e8b062086733010e72ca3 (diff) | |
parent | 37d373acee2112b0bb350e5abe09aca0115e5cc6 (diff) |
Merge branch 'master' into next
Diffstat (limited to 'gr-uhd')
-rwxr-xr-x | gr-uhd/apps/uhd_fft | 10 |
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: |