From 78ec29b6becd53f79a0ae282ae22c38bedb887d1 Mon Sep 17 00:00:00 2001 From: Matthew Crymble Date: Tue, 22 Jun 2021 18:37:14 -0500 Subject: b200: flush receive buffer after getting an overflow --- host/lib/usrp/b200/b200_io_impl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'host/lib/usrp/b200') diff --git a/host/lib/usrp/b200/b200_io_impl.cpp b/host/lib/usrp/b200/b200_io_impl.cpp index 1231b52cc..a20709497 100644 --- a/host/lib/usrp/b200/b200_io_impl.cpp +++ b/host/lib/usrp/b200/b200_io_impl.cpp @@ -513,7 +513,9 @@ void b200_impl::handle_overflow(const size_t radio_index) // my_streamer->issue_stream_cmd(stream_cmd); } } else { - // FIXME: temporarily remove the overflow handling that re-issues a start + while (_data_transport->get_recv_buff(0.001)) { + } + // FIXME: temporarily remove the overflow handling that re-issues a stream // command. This will avoid an issue that gets the b210 in a bad state. // _radio_perifs[radio_index].framer->handle_overflow(); } -- cgit v1.2.3