diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-08-04 13:19:31 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:04:00 -0800 |
commit | fa07fd53f075d90d82530af42151d3bc5d8fd802 (patch) | |
tree | 9b5de1a600250dbe078fdf064258e5f87733d113 /mpm/python | |
parent | a2f0269a1e73b1464265884b73a0ca39a8d01fc0 (diff) | |
download | uhd-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.
Diffstat (limited to 'mpm/python')
-rw-r--r-- | mpm/python/usrp_mpm/periph_manager/n310.py | 2 |
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): """ |