aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/multi_usrp.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2014-03-13 17:38:16 +0100
committerMartin Braun <martin.braun@ettus.com>2014-03-17 17:53:45 +0100
commitcbd800a252400bd0372e00974a02ed9d85e9d821 (patch)
tree8f7fea526b642bf83d4772a2cdfa4df90c4c59d1 /host/lib/usrp/multi_usrp.cpp
parent0386a47c431c87aebbf37678315b785284dbe3b9 (diff)
downloaduhd-cbd800a252400bd0372e00974a02ed9d85e9d821.tar.gz
uhd-cbd800a252400bd0372e00974a02ed9d85e9d821.tar.bz2
uhd-cbd800a252400bd0372e00974a02ed9d85e9d821.zip
uhd: Addressed Balints and Bens comments for subdev addressing
Diffstat (limited to 'host/lib/usrp/multi_usrp.cpp')
-rw-r--r--host/lib/usrp/multi_usrp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp
index 2e82e890e..f08709669 100644
--- a/host/lib/usrp/multi_usrp.cpp
+++ b/host/lib/usrp/multi_usrp.cpp
@@ -1063,7 +1063,7 @@ private:
mboard_chan_pair mcp = rx_chan_to_mcp(chan);
if (_tree->exists(mb_root(mcp.mboard) / "rx_chan_dsp_mapping")) {
std::vector<size_t> map = _tree->access<std::vector<size_t> >(mb_root(mcp.mboard) / "rx_chan_dsp_mapping").get();
- UHD_ASSERT_THROW(map.size() >= mcp.chan);
+ UHD_ASSERT_THROW(map.size() > mcp.chan);
mcp.chan = map[mcp.chan];
}
@@ -1083,7 +1083,7 @@ private:
mboard_chan_pair mcp = tx_chan_to_mcp(chan);
if (_tree->exists(mb_root(mcp.mboard) / "tx_chan_dsp_mapping")) {
std::vector<size_t> map = _tree->access<std::vector<size_t> >(mb_root(mcp.mboard) / "tx_chan_dsp_mapping").get();
- UHD_ASSERT_THROW(map.size() >= mcp.chan);
+ UHD_ASSERT_THROW(map.size() > mcp.chan);
mcp.chan = map[mcp.chan];
}
try