summaryrefslogtreecommitdiff
path: root/gnuradio-core
diff options
context:
space:
mode:
authorjblum2009-02-17 02:33:08 +0000
committerjblum2009-02-17 02:33:08 +0000
commit19e3114defa259f7fd941d46a6f6002db6b8a0de (patch)
tree8232ad38954c7ecc331e4a73723f0aba1b5340cc /gnuradio-core
parent9106e20f757dd22c00c0cacc242a0388323ab33e (diff)
downloadgnuradio-19e3114defa259f7fd941d46a6f6002db6b8a0de.tar.gz
gnuradio-19e3114defa259f7fd941d46a6f6002db6b8a0de.tar.bz2
gnuradio-19e3114defa259f7fd941d46a6f6002db6b8a0de.zip
kludge the legacy: usrp subdevice 2, the 3rd subdevice
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10448 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core')
-rw-r--r--gnuradio-core/src/python/gnuradio/eng_option.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnuradio-core/src/python/gnuradio/eng_option.py b/gnuradio-core/src/python/gnuradio/eng_option.py
index 40367d0d6..09c3e1d87 100644
--- a/gnuradio-core/src/python/gnuradio/eng_option.py
+++ b/gnuradio-core/src/python/gnuradio/eng_option.py
@@ -63,13 +63,13 @@ def check_subdev (option, opt, value):
@returns a 2-tuple (0|1, 0|1)
"""
- d = { 'A' : (0, 0), 'A:0' : (0, 0), 'A:1' : (0, 1),
- 'B' : (1, 0), 'B:0' : (1, 0), 'B:1' : (1, 1) }
+ d = { 'A' : (0, 0), 'A:0' : (0, 0), 'A:1' : (0, 1), 'A:2' : (0, 2),
+ 'B' : (1, 0), 'B:0' : (1, 0), 'B:1' : (1, 1), 'B:2' : (1, 2) }
try:
return d[value.upper()]
except:
raise OptionValueError(
- "option %s: invalid subdev: '%r', must be one of A, B, A:0, A:1, B:0, B:1" % (opt, value))
+ "option %s: invalid subdev: '%r', must be one of %s" % (opt, value, ', '.join(sorted(d.keys()))))
class eng_option (Option):
TYPES = Option.TYPES + ("eng_float", "intx", "subdev")