diff options
author | Humberto Jimenez <humberto.jimenez@ni.com> | 2018-11-21 13:13:53 -0600 |
---|---|---|
committer | Brent Stapleton <bstapleton@g.hmc.edu> | 2018-11-26 13:34:01 -0800 |
commit | f36a8dd85340c0e88ce5b84a211f35e68adf79a5 (patch) | |
tree | db8ac21714849c552901ba079ddb710cf9dd0fb2 | |
parent | 23aafe851b394f74fbb479937d560933b627fe8c (diff) | |
download | uhd-f36a8dd85340c0e88ce5b84a211f35e68adf79a5.tar.gz uhd-f36a8dd85340c0e88ce5b84a211f35e68adf79a5.tar.bz2 uhd-f36a8dd85340c0e88ce5b84a211f35e68adf79a5.zip |
rh: Fix update_ref_clock_freq() to update init args
The update_ref_clock_freq() procedure now updates the self._init_args
value of the Rhodium class daugtherboard objects in MPM to propagate
the latest user-selected arguments for future reference.
-rw-r--r-- | mpm/python/usrp_mpm/dboard_manager/rhodium.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/dboard_manager/rhodium.py b/mpm/python/usrp_mpm/dboard_manager/rhodium.py index c736003d5..e30d4a44e 100644 --- a/mpm/python/usrp_mpm/dboard_manager/rhodium.py +++ b/mpm/python/usrp_mpm/dboard_manager/rhodium.py @@ -557,7 +557,10 @@ class Rhodium(DboardManagerBase): self.log.trace("Changing ref clock frequency to %f MHz", freq/1e6) self.ref_clock_freq = freq if self._init_args is not None: + self._init_args = {**self._init_args, **kwargs} + self.log.info("Re-initializing daughter board. This may take some time.") self._reinit(self.master_clock_rate) + self.log.debug("Daughter board re-initialization done.") ########################################################################## |