diff options
author | Josh Blum <josh@joshknows.com> | 2011-04-27 19:27:15 +0100 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-04-27 19:27:15 +0100 |
commit | 9daf1f0a7be5f6a2cc220e0c2f746e65dc649568 (patch) | |
tree | 868daf7c1a13abec534a1b749d37e4338a6a7001 /host/lib/transport | |
parent | 4e0b42afcbbf1067cef2ad530f3b162e5a35771b (diff) | |
download | uhd-9daf1f0a7be5f6a2cc220e0c2f746e65dc649568.tar.gz uhd-9daf1f0a7be5f6a2cc220e0c2f746e65dc649568.tar.bz2 uhd-9daf1f0a7be5f6a2cc220e0c2f746e65dc649568.zip |
uhd: switch vita unpacker over to using proper vita length
Diffstat (limited to 'host/lib/transport')
-rwxr-xr-x | host/lib/transport/gen_vrt_if_packet.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/host/lib/transport/gen_vrt_if_packet.py b/host/lib/transport/gen_vrt_if_packet.py index 8481932ed..7df2092d8 100755 --- a/host/lib/transport/gen_vrt_if_packet.py +++ b/host/lib/transport/gen_vrt_if_packet.py @@ -152,17 +152,11 @@ void vrt::if_hdr_unpack_$(suffix)( ){ //extract vrt header boost::uint32_t vrt_hdr_word = $(XE_MACRO)(packet_buff[0]); - /* size_t packet_words32 = vrt_hdr_word & 0xffff; //failure case if (if_packet_info.num_packet_words32 < packet_words32) throw uhd::value_error("bad vrt header or packet fragment"); - */ - //Fix for short packets sent from the fpga: - // Use the num_packet_words32 passed in as input, - // and do not use the header bits which could be wrong. - size_t packet_words32 = if_packet_info.num_packet_words32; //extract fields from the header if_packet_info.packet_type = if_packet_info_t::packet_type_t(vrt_hdr_word >> 29); |