From eb2b11524bf4e65c48a0853d3f9cdb4ad9ee1719 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 28 Jul 2017 14:35:47 -0700 Subject: n3xx mpm: Set call for TCA6424 pins gets value arg --- mpm/python/usrp_mpm/periph_manager/n310.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mpm/python/usrp_mpm/periph_manager/n310.py b/mpm/python/usrp_mpm/periph_manager/n310.py index 26c6f2893..0c700bd1d 100644 --- a/mpm/python/usrp_mpm/periph_manager/n310.py +++ b/mpm/python/usrp_mpm/periph_manager/n310.py @@ -71,19 +71,18 @@ class TCA6424(object): def __init__(self): self._gpios = SysFSGPIO('tca6424', 0xFFE7FF, 0x86E7FF) - def set(self, name): + def set(self, name, value=None): """ Assert a pin by name """ assert name in self.pins - self._gpios.set(self.pins.index(name)) + self._gpios.set(self.pins.index(name), value=value) def reset(self, name): """ Deassert a pin by name """ - assert name in self.pins - self._gpios.reset(self.pins.index(name)) + self.set(name, value=0) def get(self, name): """ -- cgit v1.2.3