diff options
author | jcorgan | 2009-03-04 19:27:22 +0000 |
---|---|---|
committer | jcorgan | 2009-03-04 19:27:22 +0000 |
commit | 51f5744cffd9d9774a8bb64ac7ae710690e3270d (patch) | |
tree | 0fad2e32bf00265b38371229deaa903cc1e476d8 /usrp2/host/lib | |
parent | 834ccb04f243e4992cb2c23a8ea4ebe55027fb1c (diff) | |
download | gnuradio-51f5744cffd9d9774a8bb64ac7ae710690e3270d.tar.gz gnuradio-51f5744cffd9d9774a8bb64ac7ae710690e3270d.tar.bz2 gnuradio-51f5744cffd9d9774a8bb64ac7ae710690e3270d.zip |
Fix case where USRP2 left streaming prevents reinitialization
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10558 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'usrp2/host/lib')
-rw-r--r-- | usrp2/host/lib/usrp2_impl.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usrp2/host/lib/usrp2_impl.cc b/usrp2/host/lib/usrp2_impl.cc index a0d340c91..adbfd6d69 100644 --- a/usrp2/host/lib/usrp2_impl.cc +++ b/usrp2/host/lib/usrp2_impl.cc @@ -152,6 +152,10 @@ namespace usrp2 { d_bg_thread = new usrp2_thread(this); d_bg_thread->start(); + // In case the USRP2 was left streaming RX + // FIXME: only one channel right now + stop_rx_streaming(0); + if (!dboard_info()) // we're hosed throw std::runtime_error("Unable to retrieve daughterboard info"); |