From 51f5744cffd9d9774a8bb64ac7ae710690e3270d Mon Sep 17 00:00:00 2001 From: jcorgan Date: Wed, 4 Mar 2009 19:27:22 +0000 Subject: [PATCH] Fix case where USRP2 left streaming prevents reinitialization git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10558 221aa14e-8319-0410-a670-987f0aec2ac5 --- usrp2/host/lib/usrp2_impl.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usrp2/host/lib/usrp2_impl.cc b/usrp2/host/lib/usrp2_impl.cc index a0d340c9..adbfd6d6 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"); -- 2.47.2