Bug in usrp_oscope.py: it always selects subdev=(0, 0)

We seem to have found a bug introduced when the usrp_oscope.py was
updated for the c++ api to the usrp (8 months ago):
http://gnuradio.org/trac/changeset?new=10165%40gnuradio%2Ftrunk%2Fgr-utils%2Fsrc%2Fpython%2Fusrp_oscope.py&old=7236%40gnuradio%2Ftrunk%2Fgr-utils%2Fsrc%2Fpython%2Fusrp_oscope.py

gnuradio/trunk/gr-utils/src/python/usrp_oscope.py
r7236 r10165
41 41 Otherwise, select A.
42 42 “”"
43 if u.db[0][0].dbid() >= 0: # dbid is < 0 if there’s no
d’board or a problem
43 if u.db(0, 0).dbid() >= 0: # dbid is < 0 if there’s no
d’board or a problem
44 44 return (0, 0)
45 if u.db[1][0].dbid() >= 0:
45 if u.db(0, 0).dbid() >= 0:
46 46 return (1, 0)
47 47 return (0, 0)

So it always selects dboard A! Please fix that!

Dimitris S.
“If you think you’re too small to make a difference, try sleeping with
a mosquito!” - Amnesty International

what does this script have that usrp_fft.py -S does not?

I have created a trivial (2-line) patch that fixes this, and opened
ticket 406, where the patch is attached:
http://gnuradio.org/trac/ticket/406

Could someone please review it? Thank you

PS I am sending this to [email protected]…, [email protected]… and
[email protected]… because I’m unsure where I should have sent it.
Please advise

Dimitris S.
“If you think you’re too small to make a difference, try sleeping with
a mosquito!” - Amnesty International

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs