From 8f5f38e4f98a30ab88729ac52105a4d0f4e928a9 Mon Sep 17 00:00:00 2001 From: Trung N Tran Date: Wed, 24 Jan 2018 17:30:34 -0800 Subject: mpm: convert to string explicitly in GPIOBank --- mpm/python/usrp_mpm/sys_utils/sysfs_gpio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mpm') diff --git a/mpm/python/usrp_mpm/sys_utils/sysfs_gpio.py b/mpm/python/usrp_mpm/sys_utils/sysfs_gpio.py index 4911c1f75..10c8ad06a 100644 --- a/mpm/python/usrp_mpm/sys_utils/sysfs_gpio.py +++ b/mpm/python/usrp_mpm/sys_utils/sysfs_gpio.py @@ -207,7 +207,7 @@ class GPIOBank(object): This method will convert value into binary and assign all the bits in the use mask. """ - bin_value = ('{0:0'+self._gpiosize+'b}').format(value) + bin_value = ('{0:0'+str(self._gpiosize)+'b}').format(value) wr_value = bin_value[-(self._gpiosize):] for i in range(self._gpiosize): if (1 << i) & self._ddr: -- cgit v1.2.3