aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/io_impl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-02-23 18:16:34 -0800
committerJosh Blum <josh@joshknows.com>2010-02-23 18:16:34 -0800
commitc12d6d0f5f2bbfd749b5a18b167ed7a485cd03a1 (patch)
tree7d225503cb6e65b08b386930c7c1beaaf99e6728 /host/lib/usrp/usrp2/io_impl.cpp
parent588278f56766b0349115dec81d3fb714215c3774 (diff)
downloaduhd-c12d6d0f5f2bbfd749b5a18b167ed7a485cd03a1.tar.gz
uhd-c12d6d0f5f2bbfd749b5a18b167ed7a485cd03a1.tar.bz2
uhd-c12d6d0f5f2bbfd749b5a18b167ed7a485cd03a1.zip
vrt packet count fix
Diffstat (limited to 'host/lib/usrp/usrp2/io_impl.cpp')
-rw-r--r--host/lib/usrp/usrp2/io_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp
index 4781036ea..43334ddc6 100644
--- a/host/lib/usrp/usrp2/io_impl.cpp
+++ b/host/lib/usrp/usrp2/io_impl.cpp
@@ -105,7 +105,7 @@ size_t usrp2_impl::send_raw(
//fill in complete header word
vrt_hdr[0] = htonl(vrt_hdr_flags |
- ((_stream_id_to_packet_seq[metadata.stream_id]++ << 16) & 0xf) |
+ ((_stream_id_to_packet_seq[metadata.stream_id]++ & 0xf) << 16) |
((boost::asio::buffer_size(buff)/sizeof(uint32_t)) & 0xffff)
);