From c043f92e810da4682572eefb308c7fb7c451a2c7 Mon Sep 17 00:00:00 2001 From: Trung Tran Date: Tue, 29 Jan 2019 10:46:57 -0800 Subject: mpmd: use init timeout for update_component update_component will reinit the device therefore we should use MPMD_DEFAULT_INIT_TIMEOUT. --- host/lib/usrp/mpmd/mpmd_prop_tree.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'host/lib/usrp/mpmd/mpmd_prop_tree.cpp') diff --git a/host/lib/usrp/mpmd/mpmd_prop_tree.cpp b/host/lib/usrp/mpmd/mpmd_prop_tree.cpp index e4ebee5ac..e1b5d43cb 100644 --- a/host/lib/usrp/mpmd/mpmd_prop_tree.cpp +++ b/host/lib/usrp/mpmd/mpmd_prop_tree.cpp @@ -17,8 +17,6 @@ using namespace uhd; using namespace uhd::mpmd; namespace { -//! Timeout value for the update_component RPC call (ms) -constexpr size_t MPMD_UPDATE_COMPONENT_TIMEOUT = 20000; /*! Update a component using all required files. For example, when updating the FPGA image * (.bit or .bin), users can provide a new overlay image (DTS) to apply in addition. @@ -53,9 +51,8 @@ uhd::usrp::component_files_t _update_component( } // Now call update component - const size_t update_component_timeout = MPMD_UPDATE_COMPONENT_TIMEOUT * comps.size(); mb->rpc->notify_with_token( - update_component_timeout, "update_component", all_metadata, all_data); + MPMD_DEFAULT_INIT_TIMEOUT, "update_component", all_metadata, all_data); return all_comps_copy; } -- cgit v1.2.3