diff options
author | Ethan Trewhitt <ethan.trewhitt@gtri.gatech.edu> | 2017-02-14 23:49:38 -0500 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2017-02-26 15:30:36 -0800 |
commit | cb0de20ec8aa3da00a13f1619c9d39ad02551168 (patch) | |
tree | 995e7ad44ad4d33183dcdd5eeccea615c0111c02 | |
parent | b49da16881f309b3cb980e812066275e4ad562af (diff) |
uhd_rx_cfile --normalized-gain flag now works.
-rwxr-xr-x | gr-uhd/apps/uhd_rx_cfile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gr-uhd/apps/uhd_rx_cfile b/gr-uhd/apps/uhd_rx_cfile index f76dc2ed68..2a1ed0fcb5 100755 --- a/gr-uhd/apps/uhd_rx_cfile +++ b/gr-uhd/apps/uhd_rx_cfile @@ -108,7 +108,10 @@ class rx_cfile_block(gr.top_block): print("[UHD_RX] Channel {chan} gain: {g} dB".format(chan=chan, g=self._u.get_gain(chan))) else: for chan in self.channels: - self._u.set_gain(options.gain, chan) + if options.normalized_gain: + self._u.set_normalized_gain(options.gain, chan) + else: + self._u.set_gain(options.gain, chan) gain = self._u.get_gain(self.channels[0]) # Set frequency (tune request takes lo_offset): if options.lo_offset is not None: |