commit | 0db72979092a917985143115093334d30a1a19a6 | [log] [tgz] |
---|---|---|
author | Norman James <njames@us.ibm.com> | Wed Oct 28 13:07:04 2015 -0500 |
committer | Norman James <njames@us.ibm.com> | Wed Oct 28 13:07:04 2015 -0500 |
tree | cb894a1db4e95b4cb18270f0349b866b1254930c | |
parent | 8fee6f220927d6905bd28711872010029b9feb73 [diff] [blame] |
correct for gpio numbering change
diff --git a/bin/gpioutil b/bin/gpioutil index c39c4cf..ab44b4d 100755 --- a/bin/gpioutil +++ b/bin/gpioutil
@@ -130,7 +130,10 @@ exit(0) gpio_info = System.GPIO_CONFIG[gpio_name] direction = gpio_info['direction'] - gpio_name = str(gpio_info['gpio_num']) + if (gpio_info.has_key('gpio_num')): + gpio_name = str(gpio_info['gpio_num']) + else: + gpio_name = str(System.convertGpio(gpio_info['gpio_pin'])) print "GPIO ID: "+gpio_name+"; DIRECTION: "+direction