diff options
author | Trung N Tran <trung.tran@ettus.com> | 2018-01-24 17:30:34 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-01-24 17:33:34 -0800 |
commit | 8f5f38e4f98a30ab88729ac52105a4d0f4e928a9 (patch) | |
tree | 8931dbc9b42de36f8a3ff1f6138e1b6412a435fd /mpm | |
parent | 081e81274dbc14d6ff80c49c00d828863319b392 (diff) | |
download | uhd-8f5f38e4f98a30ab88729ac52105a4d0f4e928a9.tar.gz uhd-8f5f38e4f98a30ab88729ac52105a4d0f4e928a9.tar.bz2 uhd-8f5f38e4f98a30ab88729ac52105a4d0f4e928a9.zip |
mpm: convert to string explicitly in GPIOBank
Diffstat (limited to 'mpm')
-rw-r--r-- | mpm/python/usrp_mpm/sys_utils/sysfs_gpio.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |