aboutsummaryrefslogtreecommitdiffstats
path: root/mpm
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-07-13 17:04:31 -0700
committerMartin Braun <martin.braun@ettus.com>2018-07-17 10:49:21 -0700
commite364ad4281381a8ecafcf0282f386dbb1d91ab1d (patch)
treec8c0f2510fb2894f1db77ab5667c10e47c6f07fd /mpm
parentc8c4cf1b0c1167db1b83b3b3d090bf24bb2a5401 (diff)
downloaduhd-e364ad4281381a8ecafcf0282f386dbb1d91ab1d.tar.gz
uhd-e364ad4281381a8ecafcf0282f386dbb1d91ab1d.tar.bz2
uhd-e364ad4281381a8ecafcf0282f386dbb1d91ab1d.zip
mpm: mg: Store init args between runs
Diffstat (limited to 'mpm')
-rw-r--r--mpm/python/usrp_mpm/dboard_manager/magnesium.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/mpm/python/usrp_mpm/dboard_manager/magnesium.py b/mpm/python/usrp_mpm/dboard_manager/magnesium.py
index 6bbdd808f..b19ebf789 100644
--- a/mpm/python/usrp_mpm/dboard_manager/magnesium.py
+++ b/mpm/python/usrp_mpm/dboard_manager/magnesium.py
@@ -134,6 +134,7 @@ class Magnesium(DboardManagerBase):
self.eeprom_fs = None
self.eeprom_path = None
self.cpld = None
+ self._init_args = {}
# Now initialize all peripherals. If that doesn't work, put this class
# into a non-functional state (but don't crash, or we can't talk to it
# any more):
@@ -303,8 +304,11 @@ class Magnesium(DboardManagerBase):
self.log.debug("Updating master clock rate to {:.02f} MHz!".format(
self.master_clock_rate / 1e6
))
- return MagnesiumInitManager(self, self._spi_ifaces).init(
- args, fast_reinit)
+ result = MagnesiumInitManager(self, self._spi_ifaces).init(
+ args, self._init_args, fast_reinit)
+ if result:
+ self._init_args = args
+ return result
def get_user_eeprom_data(self):
"""