From 2b7ec07183c65866e4a13167c1132a610e38fc1c Mon Sep 17 00:00:00 2001 From: Mark Meserve Date: Wed, 16 Jan 2019 17:32:59 -0600 Subject: rh: increase timeout of set_rate's rpc call --- host/lib/usrp/dboard/rhodium/rhodium_radio_ctrl_impl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'host') diff --git a/host/lib/usrp/dboard/rhodium/rhodium_radio_ctrl_impl.cpp b/host/lib/usrp/dboard/rhodium/rhodium_radio_ctrl_impl.cpp index 17c645270..36fb5bc23 100644 --- a/host/lib/usrp/dboard/rhodium/rhodium_radio_ctrl_impl.cpp +++ b/host/lib/usrp/dboard/rhodium/rhodium_radio_ctrl_impl.cpp @@ -36,6 +36,8 @@ namespace { constexpr double DEFAULT_IDENTIFY_DURATION = 5.0; // seconds + constexpr uint64_t SET_RATE_RPC_TIMEOUT_MS = 10000; + const fs_path TX_FE_PATH = fs_path("tx_frontends") / 0 / "tune_args"; const fs_path RX_FE_PATH = fs_path("rx_frontends") / 0 / "tune_args"; @@ -92,7 +94,8 @@ double rhodium_radio_ctrl_impl::set_rate(double requested_rate) } UHD_LOG_TRACE(unique_id(), "Updating master clock rate to " << rate); - auto new_rate = _rpcc->request_with_token(_rpc_prefix + "set_master_clock_rate", rate); + auto new_rate = _rpcc->request_with_token( + SET_RATE_RPC_TIMEOUT_MS, _rpc_prefix + "set_master_clock_rate", rate); // The lowband LO frequency will change with the master clock rate, so // update the tuning of the device. set_tx_frequency(get_tx_frequency(0), 0); -- cgit v1.2.3