From c74c56ef9414ba24f722d63026608b52fc88be8a Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 18 Feb 2020 14:29:32 -0800 Subject: e320/e310: Fix get_gpio_srcs() MPM API call The Python code contained a typo which would cause a call to get_gpio_srcs() to throw an exception. --- mpm/python/usrp_mpm/periph_manager/e31x.py | 2 +- mpm/python/usrp_mpm/periph_manager/e320.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'mpm') diff --git a/mpm/python/usrp_mpm/periph_manager/e31x.py b/mpm/python/usrp_mpm/periph_manager/e31x.py index 75dcf2126..d3768490e 100644 --- a/mpm/python/usrp_mpm/periph_manager/e31x.py +++ b/mpm/python/usrp_mpm/periph_manager/e31x.py @@ -583,7 +583,7 @@ class e31x(ZynqComponents, PeriphManagerBase): Return a list of valid GPIO sources for a given bank """ assert bank in self.get_gpio_banks(), "Invalid GPIO bank: {}".format(bank) - return self._fp_gpio_srcs + return E310_GPIO_SRCS def get_gpio_src(self, bank): """ diff --git a/mpm/python/usrp_mpm/periph_manager/e320.py b/mpm/python/usrp_mpm/periph_manager/e320.py index f982155db..82185e51c 100644 --- a/mpm/python/usrp_mpm/periph_manager/e320.py +++ b/mpm/python/usrp_mpm/periph_manager/e320.py @@ -517,7 +517,7 @@ class e320(ZynqComponents, PeriphManagerBase): Return a list of valid GPIO sources for a given bank """ assert bank in self.get_gpio_banks(), "Invalid GPIO bank: {}".format(bank) - return self._fp_gpio_srcs + return E320_GPIO_SRCS def get_gpio_src(self, bank): """ -- cgit v1.2.3