diff options
Diffstat (limited to 'mpm/python/usrp_mpm/periph_manager/base.py')
-rw-r--r-- | mpm/python/usrp_mpm/periph_manager/base.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/base.py b/mpm/python/usrp_mpm/periph_manager/base.py index 25f635c68..ea2a145a8 100644 --- a/mpm/python/usrp_mpm/periph_manager/base.py +++ b/mpm/python/usrp_mpm/periph_manager/base.py @@ -21,7 +21,6 @@ Mboard implementation base class import os from six import iteritems from ..mpmlog import get_logger -from logging import getLogger from ..types import EEPROM from .. import dboard_manager from .udev import get_eeprom_path @@ -68,7 +67,7 @@ class PeriphManagerBase(object): # spi_devices = get_spidev_nodes(self.dboard_spimaster_addrs.get(dboard_slot)) # dboard = dboard_manager.HW_PIDS.get(hw_pid, dboard_manager.unknown) # self.dboards.update({dboard_slot: dboard(spi_devices, eeprom_data)}) - dboard_slot = "A" + dboard_slot = 0 self.log.debug("Adding dboard for slot {0}".format(dboard_slot)) spi_devices = [] # I know EEPROM adresses for my dboard slots @@ -80,7 +79,7 @@ class PeriphManagerBase(object): spi_devices = sorted(get_spidev_nodes("e0006000.spi")) self.log.debug("Found spidev nodes: {0}".format(spi_devices)) dboard = dboard_manager.HW_PIDS.get(hw_pid, dboard_manager.unknown) - self.dboards.update({dboard_slot: dboard(spi_devices, eeprom_data)}) + self.dboards.update({dboard_slot: dboard(0, spi_devices, eeprom_data)}) def safe_list_updateable_components(self): """ |