Imported Upstream version 3.2.2
[debian/gnuradio] / gnuradio-examples / python / multi_usrp / multi_usrp_oscope.py
index 3d426b45b4801952112bbbb96a4042e0057ae266..512b125a47eecceec8fd3ce5c6a0d23d8bf66ca1 100755 (executable)
@@ -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)