aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-05-07 11:31:18 -0700
committerJosh Blum <josh@joshknows.com>2010-05-07 11:31:18 -0700
commit8ebe12659c117ad6ff5f6e6ef762d55bf77d8dd1 (patch)
tree0b5046a57d626a73aee7aa74f5bd7a52f76c9839 /host/lib/usrp
parent1acc7467e833e5364cdcb1ba90951daf23cac656 (diff)
downloaduhd-8ebe12659c117ad6ff5f6e6ef762d55bf77d8dd1.tar.gz
uhd-8ebe12659c117ad6ff5f6e6ef762d55bf77d8dd1.tar.bz2
uhd-8ebe12659c117ad6ff5f6e6ef762d55bf77d8dd1.zip
fix for first seqno on rx, init the variable
Diffstat (limited to 'host/lib/usrp')
-rw-r--r--host/lib/usrp/usrp2/io_impl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp
index 367a1d9fb..2634e84aa 100644
--- a/host/lib/usrp/usrp2/io_impl.cpp
+++ b/host/lib/usrp/usrp2/io_impl.cpp
@@ -38,6 +38,9 @@ void usrp2_impl::io_init(void){
//initially empty copy buffer
_rx_copy_buff = asio::buffer("", 0);
+ //init the expected rx seq number
+ _rx_stream_id_to_packet_seq[0] = 0;
+
//send a small data packet so the usrp2 knows the udp source port
//and the maximum number of lines (32 bit words) per packet
managed_send_buffer::sptr send_buff = _data_transport->get_send_buff();