discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] bug in usrp_oscope.py: it always selects subdev=


From: Dimitris Symeonidis
Subject: Re: [Discuss-gnuradio] bug in usrp_oscope.py: it always selects subdev=(0, 0)
Date: Mon, 24 Aug 2009 15:33:49 +0200

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 address@hidden, address@hidden and
address@hidden because I'm unsure where I should have sent it.
Please advise

Dimitris Symeonidis
"If you think you're too small to make a difference, try sleeping with
a mosquito!" - Amnesty International



On Fri, Aug 21, 2009 at 17:28, Josh Blum<address@hidden> wrote:
> what does this script have that usrp_fft.py -S does not?
>
> Dimitris Symeonidis wrote:
>>
>> 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 Symeonidis
>> "If you think you're too small to make a difference, try sleeping with
>> a mosquito!" - Amnesty International
>>
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> address@hidden
>> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]