From ccd681e45937216b400f6bda326f11627a7e6def Mon Sep 17 00:00:00 2001 From: "Kevin Gilbert (kegilbert)" Date: Wed, 7 Dec 2016 15:09:34 -0600 Subject: Move motherboard index increment to after channel map index. This will properly map the channel index to the motherboard in chan_to_mcp(...). --- host/lib/rfnoc/legacy_compat.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'host/lib/rfnoc') diff --git a/host/lib/rfnoc/legacy_compat.cpp b/host/lib/rfnoc/legacy_compat.cpp index 631e89273..e235bdbbd 100644 --- a/host/lib/rfnoc/legacy_compat.cpp +++ b/host/lib/rfnoc/legacy_compat.cpp @@ -446,8 +446,7 @@ private: // methods mboard_idx = 0; mb_chan_idx = chan; while (mb_chan_idx >= chan_map[mboard_idx].size()) { - mboard_idx++; - mb_chan_idx -= chan_map[mboard_idx].size(); + mb_chan_idx -= chan_map[mboard_idx++].size(); } if (mboard_idx >= chan_map.size()) { throw uhd::index_error(str( -- cgit v1.2.3 From 289dd9446285ab3a04e8e26370159a050f6c5e09 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 12 Dec 2016 17:12:57 -0800 Subject: rfnoc: Removed stray print in legacy_compat --- host/lib/rfnoc/legacy_compat.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'host/lib/rfnoc') diff --git a/host/lib/rfnoc/legacy_compat.cpp b/host/lib/rfnoc/legacy_compat.cpp index e235bdbbd..a396fd677 100644 --- a/host/lib/rfnoc/legacy_compat.cpp +++ b/host/lib/rfnoc/legacy_compat.cpp @@ -349,7 +349,6 @@ public: } } BOOST_FOREACH(const size_t this_chan, chans_to_change) { - UHD_MSG(status) << "setting rate on chan " << this_chan << " " << rate << std::endl; size_t mboard, mb_chan; chan_to_mcp(this_chan, _rx_channel_map, mboard, mb_chan); const size_t dsp_index = _rx_channel_map[mboard][mb_chan].radio_index; -- cgit v1.2.3