From fa07fd53f075d90d82530af42151d3bc5d8fd802 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 4 Aug 2017 13:19:31 -0700 Subject: mpm: n3xx: Fix TCA GPIO read function Used to always return None, now returns the actual pin value. --- mpm/python/usrp_mpm/periph_manager/n310.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mpm/python') 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): """ -- cgit v1.2.3