aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-06-06 13:52:15 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:03:59 -0800
commitc34a36853e78e72f393fd255af0480c9c49ebc53 (patch)
tree0b7b05c91dc35465540c3bb5993d5a02e6914288 /mpm/python
parent5f803ae32e48023d1c26894e16f9d8891dd7e1cf (diff)
downloaduhd-c34a36853e78e72f393fd255af0480c9c49ebc53.tar.gz
uhd-c34a36853e78e72f393fd255af0480c9c49ebc53.tar.bz2
uhd-c34a36853e78e72f393fd255af0480c9c49ebc53.zip
n310: Allow --override-db-pids to skip dbs
Diffstat (limited to 'mpm/python')
-rw-r--r--mpm/python/usrp_mpm/periph_manager/base.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/base.py b/mpm/python/usrp_mpm/periph_manager/base.py
index 0f8415ba9..fb06ae351 100644
--- a/mpm/python/usrp_mpm/periph_manager/base.py
+++ b/mpm/python/usrp_mpm/periph_manager/base.py
@@ -236,6 +236,11 @@ class PeriphManagerBase(object):
if len(dboard_eeprom_paths) > self.max_num_dboards:
self.log.warning("Found more EEPROM paths than daughterboards. Ignoring some of them.")
dboard_eeprom_paths = dboard_eeprom_paths[:self.max_num_dboards]
+ if len(override_dboard_pids) and \
+ len(override_dboard_pids) < len(dboard_eeprom_paths):
+ self.log.warning("--override-db-pids is going to skip dboards.")
+ dboard_eeprom_paths = \
+ dboard_eeprom_paths[:len(override_dboard_pids)]
self.dboards = []
for dboard_idx, dboard_eeprom_path in enumerate(dboard_eeprom_paths):
self.log.debug("Initializing dboard {}...".format(dboard_idx))