summaryrefslogtreecommitdiff
path: root/gr-utils/src/python/usrp_oscope.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-utils/src/python/usrp_oscope.py')
-rwxr-xr-xgr-utils/src/python/usrp_oscope.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-utils/src/python/usrp_oscope.py b/gr-utils/src/python/usrp_oscope.py
index d3223cba3..f4a539dd5 100755
--- a/gr-utils/src/python/usrp_oscope.py
+++ b/gr-utils/src/python/usrp_oscope.py
@@ -40,9 +40,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)