aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/sysfs_gpio.py
diff options
context:
space:
mode:
Diffstat (limited to 'mpm/python/usrp_mpm/sysfs_gpio.py')
-rw-r--r--mpm/python/usrp_mpm/sysfs_gpio.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpm/python/usrp_mpm/sysfs_gpio.py b/mpm/python/usrp_mpm/sysfs_gpio.py
index fd06ad10d..fa07921d8 100644
--- a/mpm/python/usrp_mpm/sysfs_gpio.py
+++ b/mpm/python/usrp_mpm/sysfs_gpio.py
@@ -121,7 +121,7 @@ class SysFSGPIO(object):
E.g., if use_mask & 0x1 is True, it makes sure that 'gpioXXX' is exported.
Also sets the DDRs.
"""
- gpio_list = [x for x in xrange(n_gpio) if (1<<x) & use_mask]
+ gpio_list = [x for x in range(n_gpio) if (1<<x) & use_mask]
self.log.trace("Initializing {} GPIOs...".format(len(gpio_list)))
for gpio_idx in gpio_list:
gpio_num = base + gpio_idx