From ca74d5cd8cafd007f6dee9af8eb5362c2a70e7fd Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 3 Jan 2018 13:40:52 -0800 Subject: mpm: periph_manager: Pass default args to dboard manager --- mpm/python/usrp_mpm/periph_manager/base.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mpm/python/usrp_mpm') diff --git a/mpm/python/usrp_mpm/periph_manager/base.py b/mpm/python/usrp_mpm/periph_manager/base.py index 474180c31..4db74e8dd 100644 --- a/mpm/python/usrp_mpm/periph_manager/base.py +++ b/mpm/python/usrp_mpm/periph_manager/base.py @@ -138,7 +138,7 @@ class PeriphManagerBase(object): try: self._init_mboard_with_eeprom() self._init_mboard_overlays(self._eeprom_head, args) - self._init_dboards(args.override_db_pids) + self._init_dboards(args.override_db_pids, args) self._device_initialized = True except Exception as ex: self.log.error("Failed to initialize device: %s", str(ex)) @@ -220,7 +220,7 @@ class PeriphManagerBase(object): sleep(1) - def _init_dboards(self, override_dboard_pids=None): + def _init_dboards(self, override_dboard_pids, default_args): """ Initialize all the daughterboards """ @@ -279,6 +279,7 @@ class PeriphManagerBase(object): 'eeprom_rawdata': dboard_eeprom_rawdata, 'pid': db_pid, 'spi_nodes': spi_nodes, + 'default_args': default_args, } # This will actually instantiate the dboard class: self.dboards.append(db_class(dboard_idx, **dboard_info)) -- cgit v1.2.3