From d0de7a5812ca1e4caf5b88a075f45a320b29f4c4 Mon Sep 17 00:00:00 2001 From: Mark Meserve Date: Mon, 15 Oct 2018 15:50:50 -0500 Subject: mpm: identify sysfs gpios more generically - Allow generic path names to be given for each search parameter instead of only checking the label --- mpm/python/usrp_mpm/dboard_manager/mg_periphs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mpm/python/usrp_mpm/dboard_manager') diff --git a/mpm/python/usrp_mpm/dboard_manager/mg_periphs.py b/mpm/python/usrp_mpm/dboard_manager/mg_periphs.py index fb014cf54..8a237b3d9 100644 --- a/mpm/python/usrp_mpm/dboard_manager/mg_periphs.py +++ b/mpm/python/usrp_mpm/dboard_manager/mg_periphs.py @@ -29,7 +29,7 @@ class TCA6408(object): def __init__(self, i2c_dev): if i2c_dev is None: raise RuntimeError("Need to specify i2c device to use the TCA6408") - self._gpios = SysFSGPIO('tca6408', 0xBF, 0xAA, 0xAA, i2c_dev) + self._gpios = SysFSGPIO({'label': 'tca6408'}, 0xBF, 0xAA, 0xAA, i2c_dev) def set(self, name, value=None): """ -- cgit v1.2.3