summaryrefslogtreecommitdiff
path: root/gr-uhd
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2014-05-02 10:44:54 +0200
committerJohnathan Corgan <johnathan@corganlabs.com>2014-05-02 13:53:24 -0700
commitaffda0ba43433927d6da0f692960af52dd952c06 (patch)
treeb6fb29d900d173eb134fde5141c2f7cd4be5e1fa /gr-uhd
parent07e6734bab96ca48d5ef004e951a6f6c7284da63 (diff)
uhd: Fixed "reducing chan number" bug
In some cases, there could be an error when reducing the number of chans for UHD device in GRC (e.g. going from 2 chans to 1). This adds another check which will alert the user.
Diffstat (limited to 'gr-uhd')
-rw-r--r--gr-uhd/grc/gen_uhd_usrp_blocks.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gr-uhd/grc/gen_uhd_usrp_blocks.py b/gr-uhd/grc/gen_uhd_usrp_blocks.py
index 02a89afc56..f80a7ee26e 100644
--- a/gr-uhd/grc/gen_uhd_usrp_blocks.py
+++ b/gr-uhd/grc/gen_uhd_usrp_blocks.py
@@ -298,6 +298,7 @@ self.\$(id).set_bandwidth(\$bw$(n), $n)
<check>$max_mboards >= \$num_mboards</check>
<check>\$num_mboards > 0</check>
<check>\$nchan >= \$num_mboards</check>
+ <check>(not \$stream_chans()) or (\$nchan == len(\$stream_chans))</check>
<$sourk>
<name>$direction</name>
<type>\$type.type</type>