aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/b200/b200_io_impl.cpp
diff options
context:
space:
mode:
authormichael-west <michael.west@ettus.com>2016-02-05 09:52:45 -0800
committermichael-west <michael.west@ettus.com>2016-02-05 09:52:45 -0800
commit5c97330f089c9311b07e73f5c9ec6fb512dcaf67 (patch)
tree443c7a565a60ebac4ebbb0f3a29b3de12b2c7e60 /host/lib/usrp/b200/b200_io_impl.cpp
parent985836297a84fe900b6946b63f5e266bddbb432d (diff)
downloaduhd-5c97330f089c9311b07e73f5c9ec6fb512dcaf67.tar.gz
uhd-5c97330f089c9311b07e73f5c9ec6fb512dcaf67.tar.bz2
uhd-5c97330f089c9311b07e73f5c9ec6fb512dcaf67.zip
B200: Fix for increasing retune times
Diffstat (limited to 'host/lib/usrp/b200/b200_io_impl.cpp')
-rw-r--r--host/lib/usrp/b200/b200_io_impl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/b200/b200_io_impl.cpp b/host/lib/usrp/b200/b200_io_impl.cpp
index 5b0c4ba13..93f5b22fc 100644
--- a/host/lib/usrp/b200/b200_io_impl.cpp
+++ b/host/lib/usrp/b200/b200_io_impl.cpp
@@ -294,7 +294,7 @@ boost::optional<uhd::msg_task::msg_type_t> b200_impl::handle_async_task(
{
managed_recv_buffer::sptr buff = xport->get_recv_buff();
if (not buff or buff->size() < 8)
- return uhd::msg_task::msg_type_t(0, uhd::msg_task::msg_payload_t());
+ return boost::none;
const boost::uint32_t sid = uhd::wtohx(buff->cast<const boost::uint32_t *>()[1]);
switch (sid) {
@@ -358,7 +358,7 @@ boost::optional<uhd::msg_task::msg_type_t> b200_impl::handle_async_task(
default:
UHD_MSG(error) << "Got a ctrl packet with unknown SID " << sid << std::endl;
}
- return uhd::msg_task::msg_type_t(0, uhd::msg_task::msg_payload_t());
+ return boost::none;
}
/***********************************************************************