From 8a78802c10fa64af5d1ec7cf39ce389f003cce11 Mon Sep 17 00:00:00 2001 From: Johannes Demel Date: Tue, 19 Nov 2013 13:17:52 -0800 Subject: b200/dtor-stall: final fixes for stall bug --- host/lib/usrp/b200/b200_io_impl.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (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 069b8ff58..1eddeb8bc 100644 --- a/host/lib/usrp/b200/b200_io_impl.cpp +++ b/host/lib/usrp/b200/b200_io_impl.cpp @@ -155,11 +155,12 @@ boost::optional b200_impl::handle_async_task( boost::shared_ptr data ) { - managed_recv_buffer::sptr buff = xport->get_recv_buff(); - if (not buff or buff->size() < 8) return NULL; + managed_recv_buffer::sptr buff = xport->get_recv_buff(); + if (not buff or buff->size() < 8) + return NULL; + const boost::uint32_t sid = uhd::wtohx(buff->cast()[1]); - switch (sid) - { + switch (sid) { //if the packet is a control response case B200_RESP0_MSG_SID: -- cgit v1.2.3