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') 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