diff options
author | Eric Blossom | 2010-02-04 11:37:00 -0800 |
---|---|---|
committer | Eric Blossom | 2010-02-04 11:37:00 -0800 |
commit | 6b1bcb301ff4cb20ac62bf5400fa3001182cb069 (patch) | |
tree | 0424c5c69a754d50b214358c3a0064119ca5e8b1 /gr-utils/src | |
parent | 69cbd4af0c44e71a73b6937cfc1f0b456040fe61 (diff) | |
download | gnuradio-6b1bcb301ff4cb20ac62bf5400fa3001182cb069.tar.gz gnuradio-6b1bcb301ff4cb20ac62bf5400fa3001182cb069.tar.bz2 gnuradio-6b1bcb301ff4cb20ac62bf5400fa3001182cb069.zip |
Fix pick_subdevice.
Patch from Alexander Chemeris <alexander.chemeris@gmail.com>
Diffstat (limited to 'gr-utils/src')
-rwxr-xr-x | gr-utils/src/python/usrp_fft.py | 2 | ||||
-rwxr-xr-x | gr-utils/src/python/usrp_oscope.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gr-utils/src/python/usrp_fft.py b/gr-utils/src/python/usrp_fft.py index ab7fb4462..eda9bd57c 100755 --- a/gr-utils/src/python/usrp_fft.py +++ b/gr-utils/src/python/usrp_fft.py @@ -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) diff --git a/gr-utils/src/python/usrp_oscope.py b/gr-utils/src/python/usrp_oscope.py index f4a539dd5..9921e9873 100755 --- a/gr-utils/src/python/usrp_oscope.py +++ b/gr-utils/src/python/usrp_oscope.py @@ -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) |