From d208f68e328e86a7ec813fc04dea1e1e4fe53fa4 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 24 Nov 2010 22:19:09 +0100 Subject: gsm_receive_usrp: use usrp.pick_rx_subdev() --- gsm-receiver/src/python/gsm_receive_usrp.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'gsm-receiver') diff --git a/gsm-receiver/src/python/gsm_receive_usrp.py b/gsm-receiver/src/python/gsm_receive_usrp.py index 1cde651..e221908 100755 --- a/gsm-receiver/src/python/gsm_receive_usrp.py +++ b/gsm-receiver/src/python/gsm_receive_usrp.py @@ -15,13 +15,6 @@ for extdir in ['../../debug/src/lib','../../debug/src/lib/.libs','../lib','../li sys.path.append(extdir) import gsm -def pick_subdevice(u): - if u.db[0][0].dbid() >= 0: - return (0, 0) - if u.db[1][0].dbid() >= 0: - return (1, 0) - return (0, 0) - class tuner(gr.feval_dd): def __init__(self, top_block): gr.feval_dd.__init__(self) @@ -44,6 +37,7 @@ class gsm_receiver_first_blood(gr.top_block): gr.top_block.__init__(self) (options, args) = self._process_options() self.tuner_callback = tuner(self) + self.synchronizer_callback = synchronizer(self) self.options = options self.args = args self._set_rates() @@ -68,7 +62,7 @@ class gsm_receiver_first_blood(gr.top_block): self.usrp = usrp.source_c(decim_rate=options.decim, fusb_block_size=fusb_block_size, fusb_nblocks=fusb_nblocks) if options.rx_subdev_spec is None: - options.rx_subdev_spec = pick_subdevice(self.usrp) + options.rx_subdev_spec = usrp.pick_rx_subdevice(self.usrp) self.usrp.set_mux(usrp.determine_rx_mux_value(self.usrp, options.rx_subdev_spec)) # determine the daughterboard subdevice -- cgit v1.2.3