Fix pick_subdevice.
authorEric Blossom <eb@comsec.com>
Thu, 4 Feb 2010 19:37:00 +0000 (11:37 -0800)
committerEric Blossom <eb@comsec.com>
Thu, 4 Feb 2010 19:37:00 +0000 (11:37 -0800)
Patch from Alexander Chemeris <alexander.chemeris@gmail.com>

gr-utils/src/python/usrp_fft.py
gr-utils/src/python/usrp_oscope.py

index ab7fb44622112d65ecdfe246d3efe8fe66e16001..eda9bd57c0f21055a9fa4ef25be8dc666251c756 100755 (executable)
@@ -39,7 +39,7 @@ def pick_subdevice(u):
     """
     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(0, 0).dbid() >= 0:
+    if u.db(1, 0).dbid() >= 0:
         return (1, 0)
     return (0, 0)
 
index f4a539dd59f62bd4e0c17a7fea092c49360effa5..9921e987340a4090cffcfc4a52f84442fed82d82 100755 (executable)
@@ -42,7 +42,7 @@ def pick_subdevice(u):
     """
     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(0, 0).dbid() >= 0:
+    if u.db(1, 0).dbid() >= 0:
         return (1, 0)
     return (0, 0)