From 38d0c4cff7aa26567c3fb2fb55002de8627aa044 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 23 Mar 2012 13:53:47 -0700 Subject: uhd: add a flush to finite_acquisition_v --- gr-uhd/lib/gr_uhd_usrp_source.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gr-uhd/lib') diff --git a/gr-uhd/lib/gr_uhd_usrp_source.cc b/gr-uhd/lib/gr_uhd_usrp_source.cc index 9fd2d175a..b454d73de 100644 --- a/gr-uhd/lib/gr_uhd_usrp_source.cc +++ b/gr-uhd/lib/gr_uhd_usrp_source.cc @@ -437,6 +437,9 @@ public: this->stop(); } + //flush so there is no queued-up data + this->flush(); + //create a multi-dimensional container to hold an array of sample buffers std::vector > > samps(_nchan, std::vector >(nsamps)); -- cgit