summaryrefslogtreecommitdiff
path: root/gr-uhd/grc/gen_uhd_usrp_blocks.py
diff options
context:
space:
mode:
authorMartin Braun <martin@gnuradio.org>2020-10-05 10:41:12 +0200
committerMartin Braun <martin@gnuradio.org>2020-10-05 10:42:32 +0200
commit921a5c211dbc52d449607e62b823bbd1a665b835 (patch)
tree51bcea65b837ec4ffa75854559e03fd51c92acec /gr-uhd/grc/gen_uhd_usrp_blocks.py
parent811db511d63362b3d9cf689b8f378900ced7910c (diff)
uhd: Fix gain type hiding
Gain type hiding was inverted: It was supposed to hide gain type for default (absolute/dB), and not hide for normalized and absolute/dBm. Fixed by this commit.
Diffstat (limited to 'gr-uhd/grc/gen_uhd_usrp_blocks.py')
-rw-r--r--gr-uhd/grc/gen_uhd_usrp_blocks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-uhd/grc/gen_uhd_usrp_blocks.py b/gr-uhd/grc/gen_uhd_usrp_blocks.py
index 523e4bb0aa..b83b06bc89 100644
--- a/gr-uhd/grc/gen_uhd_usrp_blocks.py
+++ b/gr-uhd/grc/gen_uhd_usrp_blocks.py
@@ -470,9 +470,9 @@ PARAMS_TMPL = """
options: [default, normalized, power]
option_labels: [Absolute (dB), Normalized, Absolute Power (dBm)]
% if sourk == 'source':
- hide: ${'$'}{ 'all' if nchan <= ${n} or rx_agc${n} == 'Enabled' else ('none' if (eval('gain_type' + str(${n})) == 'default') else 'part')}
+ hide: ${'$'}{ 'all' if nchan <= ${n} or rx_agc${n} == 'Enabled' else ('part' if (eval('gain_type' + str(${n})) == 'default') else 'none')}
% else:
- hide: ${'$'}{ 'all' if nchan <= ${n} else ('none' if (eval('gain_type' + str(${n})) == 'default') else 'part')}
+ hide: ${'$'}{ 'all' if nchan <= ${n} else ('part' if (eval('gain_type' + str(${n})) == 'default') else 'none')}
% endif
- id: ant${n}
label: 'Ch${n}: Antenna'