aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorTrung Tran <trung.tran@ettus.com>2018-10-10 12:50:10 -0700
committerMartin Braun <martin.braun@ettus.com>2018-10-11 11:21:58 -0700
commit71300593e5c0c6af4116d8706c9762f808dbf441 (patch)
treeee869bcfc14bed266830403160a1557ad9fa2686 /host/lib
parentc3c479fa8ee73dd76fe57bf6e3a62ab431ca33d5 (diff)
downloaduhd-71300593e5c0c6af4116d8706c9762f808dbf441.tar.gz
uhd-71300593e5c0c6af4116d8706c9762f808dbf441.tar.bz2
uhd-71300593e5c0c6af4116d8706c9762f808dbf441.zip
mpmd: Increase rpcc timeout when calling set_time_source()
set_time_source() for N310 and N300 can take longer than the default RPC client timeout of 2 seconds due to dboard initialization. We need increase this timeout, by using the init timeout value which is 2 minutes.
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/usrp/mpmd/mpmd_prop_tree.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_prop_tree.cpp b/host/lib/usrp/mpmd/mpmd_prop_tree.cpp
index af0a03ff3..900846d54 100644
--- a/host/lib/usrp/mpmd/mpmd_prop_tree.cpp
+++ b/host/lib/usrp/mpmd/mpmd_prop_tree.cpp
@@ -132,7 +132,9 @@ void mpmd_impl::init_property_tree(
;
tree->create<std::string>(mb_path / "time_source/value")
.add_coerced_subscriber([mb](const std::string &time_source){
+ mb->set_timeout_init();
mb->rpc->notify_with_token("set_time_source", time_source);
+ mb->set_timeout_default();
})
.set_publisher([mb](){
return mb->rpc->request_with_token<std::string>(