From 400713fba4ff6b51118c99fcf1dcdd32297a7f5e Mon Sep 17 00:00:00 2001 From: Trung N Tran Date: Mon, 15 Jan 2018 12:46:25 -0800 Subject: mpm: add init clock and time source from args Reviewed-by: Martin Braun --- mpm/python/usrp_mpm/periph_manager/n310.py | 4 ++++ 1 file changed, 4 insertions(+) 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) -- cgit v1.2.3