X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gnuradio-examples%2Fpython%2Fmulti_usrp%2Fmulti_usrp_oscope.py;h=512b125a47eecceec8fd3ce5c6a0d23d8bf66ca1;hb=ea29b08aeb54227e6628f655ccfdb96fe4d8c378;hp=3d426b45b4801952112bbbb96a4042e0057ae266;hpb=09a1e803a9e6587c78d20cdf16891e5295874668;p=debian%2Fgnuradio diff --git a/gnuradio-examples/python/multi_usrp/multi_usrp_oscope.py b/gnuradio-examples/python/multi_usrp/multi_usrp_oscope.py index 3d426b45..512b125a 100755 --- a/gnuradio-examples/python/multi_usrp/multi_usrp_oscope.py +++ b/gnuradio-examples/python/multi_usrp/multi_usrp_oscope.py @@ -42,9 +42,9 @@ def pick_subdevice(u): If there's a daughterboard on B, select B. Otherwise, select A. """ - if u.db[0][0].dbid() >= 0: # dbid is < 0 if there's no d'board or a problem + if u.db(0, 0).dbid() >= 0: # dbid is < 0 if there's no d'board or a problem return (0, 0) - if u.db[1][0].dbid() >= 0: + if u.db(0, 0).dbid() >= 0: return (1, 0) return (0, 0)