From acd1f6d91e7cb0c2d3dd76581ec8ee4b7acd9a4b Mon Sep 17 00:00:00 2001 From: Brent Stapleton Date: Wed, 3 Jan 2018 10:43:19 -0800 Subject: mpm: Increase RPC timeout during update_component Increases the host's timeout during update_component times, then resets it to the default RPC timeout after the call is complete. Reviewed-by: Martin Braun --- host/lib/usrp/mpmd/mpmd_mboard_impl.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'host/lib/usrp/mpmd/mpmd_mboard_impl.cpp') diff --git a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp index 3702c15a1..0ca996d28 100644 --- a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp +++ b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp @@ -259,6 +259,13 @@ uhd::device_addr_t mpmd_mboard_impl::get_tx_hints() const return tx_hints; } +void mpmd_mboard_impl::set_timeout_default() +{ + rpc->set_timeout(mb_args.cast( + "rpc_timeout", MPMD_DEFAULT_RPC_TIMEOUT + )); +} + /***************************************************************************** * Private methods -- cgit v1.2.3