From af6d2409499da5ffb0da1cb4d3d50293774937e8 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 26 Apr 2017 17:25:23 -0700 Subject: mpm: Improved udev identification of SPI device nodes --- mpm/python/usrp_mpm/periph_manager/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mpm/python/usrp_mpm/periph_manager/base.py') diff --git a/mpm/python/usrp_mpm/periph_manager/base.py b/mpm/python/usrp_mpm/periph_manager/base.py index 459f8833f..4815bd88d 100644 --- a/mpm/python/usrp_mpm/periph_manager/base.py +++ b/mpm/python/usrp_mpm/periph_manager/base.py @@ -77,8 +77,8 @@ class PeriphManagerBase(object): # I know spidev masters on the dboard slots hw_pid = 2 if hw_pid in dboard_manager.HW_PIDS: - spi_devices = get_spidev_nodes("e0006000.spi") - self.log.debug("found spidev nodes: {0}".format(spi_devices)) + 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)}) -- cgit v1.2.3