aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-08-04 13:19:31 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:04:00 -0800
commitfa07fd53f075d90d82530af42151d3bc5d8fd802 (patch)
tree9b5de1a600250dbe078fdf064258e5f87733d113
parenta2f0269a1e73b1464265884b73a0ca39a8d01fc0 (diff)
downloaduhd-fa07fd53f075d90d82530af42151d3bc5d8fd802.tar.gz
uhd-fa07fd53f075d90d82530af42151d3bc5d8fd802.tar.bz2
uhd-fa07fd53f075d90d82530af42151d3bc5d8fd802.zip
mpm: n3xx: Fix TCA GPIO read function
Used to always return None, now returns the actual pin value.
-rw-r--r--mpm/python/usrp_mpm/periph_manager/n310.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/n310.py b/mpm/python/usrp_mpm/periph_manager/n310.py
index 695a4573b..c36de555c 100644
--- a/mpm/python/usrp_mpm/periph_manager/n310.py
+++ b/mpm/python/usrp_mpm/periph_manager/n310.py
@@ -93,7 +93,7 @@ class TCA6424(object):
Read back a pin by name
"""
assert name in self.pins
- self._gpios.get(self.pins.index(name))
+ return self._gpios.get(self.pins.index(name))
class FP_GPIO(object):
"""