From e4cf0d1b51b7bc9843e76e8d6e35097664b6f2b3 Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Wed, 14 Dec 2011 22:23:50 -0500 Subject: uhd: fixes to instantiating UHD devices to set the antenna and subdevice properly (patch from Sam Bretheim). --- gr-uhd/apps/uhd_fft.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gr-uhd/apps/uhd_fft.py') diff --git a/gr-uhd/apps/uhd_fft.py b/gr-uhd/apps/uhd_fft.py index 7ebf5e106..a9bb1435e 100755 --- a/gr-uhd/apps/uhd_fft.py +++ b/gr-uhd/apps/uhd_fft.py @@ -85,6 +85,10 @@ class app_top_block(stdgui2.std_top_block): if(options.spec): self.u.set_subdev_spec(options.spec, 0) + # Set the antenna + if(options.antenna): + self.u.set_antenna(options.antenna, 0) + self.u.set_samp_rate(options.samp_rate) input_rate = self.u.get_samp_rate() @@ -128,10 +132,6 @@ class app_top_block(stdgui2.std_top_block): self.set_gain(options.gain) - # Set the antenna - if(options.antenna): - self.u.set_antenna(options.antenna, 0) - if self.show_debug_info: self.myform['samprate'].set_value(self.u.get_samp_rate()) self.myform['rffreq'].set_value(0) -- cgit