Merged r10071:10164 from features/cppdb-test into trunk. Implements the fully native...
[debian/gnuradio] / gnuradio-examples / python / dect / usrp_source.py
index 6a779840f2fc58c75d7a8bb942ec2b2ed6407d2f..df19ff27845eebc6d613ca6e0fb0ed48de6b628f 100644 (file)
@@ -64,9 +64,9 @@ class usrp_source_c(gr.hier_block2):
         If there's a daughterboard on B, select B.
         Otherwise, select A.
         """
-        if self._u.db[0][0].dbid() >= 0:       # dbid is < 0 if there's no d'board or a problem
+        if self._u.db(0, 0).dbid() >= 0:       # dbid is < 0 if there's no d'board or a problem
             return (0, 0)
-        if self._u.db[1][0].dbid() >= 0:
+        if self._u.db(1, 0).dbid() >= 0:
             return (1, 0)
         return (0, 0)