diff options
author | Mark Meserve <mark.meserve@ni.com> | 2019-01-16 17:32:59 -0600 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2019-01-21 13:28:44 -0800 |
commit | 2b7ec07183c65866e4a13167c1132a610e38fc1c (patch) | |
tree | e6b49360ffc79d1fc71429baae0895b643fbcc1d /host/lib/usrp | |
parent | d711f6d794561bba292b9907d1aa19a0fdd85b51 (diff) | |
download | uhd-2b7ec07183c65866e4a13167c1132a610e38fc1c.tar.gz uhd-2b7ec07183c65866e4a13167c1132a610e38fc1c.tar.bz2 uhd-2b7ec07183c65866e4a13167c1132a610e38fc1c.zip |
rh: increase timeout of set_rate's rpc call
Diffstat (limited to 'host/lib/usrp')
-rw-r--r-- | host/lib/usrp/dboard/rhodium/rhodium_radio_ctrl_impl.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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<double>(_rpc_prefix + "set_master_clock_rate", rate); + auto new_rate = _rpcc->request_with_token<double>( + 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); |