diff options
author | Josh Blum <josh@joshknows.com> | 2010-07-30 11:16:58 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-07-30 11:16:58 -0700 |
commit | 5dca9e6315c5f827d97351316e5bdd3a786dc4f1 (patch) | |
tree | bf60767354616c531f744d3152ae2a2a42867c46 /host/lib/usrp/usrp2/mboard_impl.cpp | |
parent | 1cddf89b0ea0b509418ea9a817bd1cebbdfdb118 (diff) | |
download | uhd-5dca9e6315c5f827d97351316e5bdd3a786dc4f1.tar.gz uhd-5dca9e6315c5f827d97351316e5bdd3a786dc4f1.tar.bz2 uhd-5dca9e6315c5f827d97351316e5bdd3a786dc4f1.zip |
usrp2: stop streaming and drain buffer (if left running)
Diffstat (limited to 'host/lib/usrp/usrp2/mboard_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/mboard_impl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/mboard_impl.cpp b/host/lib/usrp/usrp2/mboard_impl.cpp index 0ac988361..3d103c940 100644 --- a/host/lib/usrp/usrp2/mboard_impl.cpp +++ b/host/lib/usrp/usrp2/mboard_impl.cpp @@ -98,6 +98,11 @@ usrp2_mboard_impl::usrp2_mboard_impl( //init the tx and rx dboards (do last) dboard_init(); + + //Issue a stop streaming command (in case it was left running). + //Since this command is issued before the networking is setup, + //most if not all junk packets will never make it to the socket. + this->issue_ddc_stream_cmd(stream_cmd_t::STREAM_MODE_STOP_CONTINUOUS); } usrp2_mboard_impl::~usrp2_mboard_impl(void){ |