commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r10558 - gnuradio/trunk/usrp2/host/lib


From: jcorgan
Subject: [Commit-gnuradio] r10558 - gnuradio/trunk/usrp2/host/lib
Date: Wed, 4 Mar 2009 12:27:22 -0700 (MST)

Author: jcorgan
Date: 2009-03-04 12:27:22 -0700 (Wed, 04 Mar 2009)
New Revision: 10558

Modified:
   gnuradio/trunk/usrp2/host/lib/usrp2_impl.cc
Log:
Fix case where USRP2 left streaming prevents reinitialization

Modified: gnuradio/trunk/usrp2/host/lib/usrp2_impl.cc
===================================================================
--- gnuradio/trunk/usrp2/host/lib/usrp2_impl.cc 2009-03-04 18:12:16 UTC (rev 
10557)
+++ gnuradio/trunk/usrp2/host/lib/usrp2_impl.cc 2009-03-04 19:27:22 UTC (rev 
10558)
@@ -152,6 +152,10 @@
     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");
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]