aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrung N Tran <trung.tran@ettus.com>2018-01-15 12:46:25 -0800
committerMartin Braun <martin.braun@ettus.com>2018-01-16 09:51:51 -0800
commit400713fba4ff6b51118c99fcf1dcdd32297a7f5e (patch)
tree4a4de84a2ffa83b8e6276e7a1c634b3f1d563726
parentb8ae1286ad709bb609e0efc37039b3a3cacc6e9d (diff)
downloaduhd-400713fba4ff6b51118c99fcf1dcdd32297a7f5e.tar.gz
uhd-400713fba4ff6b51118c99fcf1dcdd32297a7f5e.tar.bz2
uhd-400713fba4ff6b51118c99fcf1dcdd32297a7f5e.zip
mpm: add init clock and time source from args
Reviewed-by: Martin Braun <martin.braun@ettus.com>
-rw-r--r--mpm/python/usrp_mpm/periph_manager/n310.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/n310.py b/mpm/python/usrp_mpm/periph_manager/n310.py
index d24526792..8e23b6e74 100644
--- a/mpm/python/usrp_mpm/periph_manager/n310.py
+++ b/mpm/python/usrp_mpm/periph_manager/n310.py
@@ -585,6 +585,10 @@ class n310(PeriphManagerBase):
self.log.warning(
"Cannot run init(), device was never fully initialized!")
return
+ if args.get("clock_source", "") != "":
+ self.set_clock_source(args.get("clock_source"))
+ if args.get("time_source", "") != "":
+ self.set_time_source(args.get("time_source"))
result = super(n310, self).init(args)
for xport_mgr in itervalues(self._xport_mgrs):
xport_mgr.init(args)