From 5f49df7cab3cf4e726771178a87201f884947a6e Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 16 Jun 2011 18:47:44 -0700 Subject: b100: support for dual dsp --- host/lib/usrp/usrp_e100/io_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/usrp/usrp_e100') diff --git a/host/lib/usrp/usrp_e100/io_impl.cpp b/host/lib/usrp/usrp_e100/io_impl.cpp index 4364f131f..f590951dc 100644 --- a/host/lib/usrp/usrp_e100/io_impl.cpp +++ b/host/lib/usrp/usrp_e100/io_impl.cpp @@ -126,7 +126,7 @@ void usrp_e100_impl::io_impl::recv_pirate_loop( //handle an rx data packet or inline message const boost::uint32_t *vrt_hdr = buff->cast(); - const size_t rx_index = vrt_hdr[1] - E100_DSP_SID_BASE; + const size_t rx_index = uhd::wtohx(vrt_hdr[1]) - E100_DSP_SID_BASE; if (rx_index < E100_NUM_RX_DSPS){ debug_print_buff("data", buff); recv_pirate_booty[rx_index]->push_with_wait(buff); -- cgit v1.2.3