diff options
author | Jason Abele <jason@ettus.com> | 2011-11-07 16:29:43 -0800 |
---|---|---|
committer | Jason Abele <jason@ettus.com> | 2011-11-07 17:18:17 -0800 |
commit | bba957122090331181d7e27f22bc05934adba608 (patch) | |
tree | bbab078f566a06a6589f21c1d926d94f0395590e /gr-uhd/apps | |
parent | 81dbc190bebe6f623aa5603394dcc691110f55fb (diff) |
Fix initial gain setting for uhd_siggen[_gui].py
Diffstat (limited to 'gr-uhd/apps')
-rwxr-xr-x | gr-uhd/apps/uhd_siggen.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gr-uhd/apps/uhd_siggen.py b/gr-uhd/apps/uhd_siggen.py index 4b70604606..29daabda73 100755 --- a/gr-uhd/apps/uhd_siggen.py +++ b/gr-uhd/apps/uhd_siggen.py @@ -101,6 +101,10 @@ class top_block(gr.top_block, pubsub): if(options.spec): self._u.set_subdev_spec(options.spec, 0) + # Set the gain on the usrp from options + if(options.gain): + self._u.set_gain(options.gain) + # Set the antenna if(options.antenna): self._u.set_antenna(options.antenna, 0) |