aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/dboard_manager/mg_periphs.py
diff options
context:
space:
mode:
authorMark Meserve <mark.meserve@ni.com>2018-10-15 15:50:50 -0500
committerBrent Stapleton <bstapleton@g.hmc.edu>2018-10-18 18:15:25 -0700
commitd0de7a5812ca1e4caf5b88a075f45a320b29f4c4 (patch)
tree948adb721375091b238483ddc6da21618c1016aa /mpm/python/usrp_mpm/dboard_manager/mg_periphs.py
parentcb0a07aa04048ded29b202df0cd9aeb8094a8b20 (diff)
downloaduhd-d0de7a5812ca1e4caf5b88a075f45a320b29f4c4.tar.gz
uhd-d0de7a5812ca1e4caf5b88a075f45a320b29f4c4.tar.bz2
uhd-d0de7a5812ca1e4caf5b88a075f45a320b29f4c4.zip
mpm: identify sysfs gpios more generically
- Allow generic path names to be given for each search parameter instead of only checking the label
Diffstat (limited to 'mpm/python/usrp_mpm/dboard_manager/mg_periphs.py')
-rw-r--r--mpm/python/usrp_mpm/dboard_manager/mg_periphs.py2
1 files changed, 1 insertions, 1 deletions
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):
"""