projects
/
contrib
/
mraa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c4742c
)
mraa.c: fix aio mraa_pin_mode_test
author
Brendan Le Foll
<brendan.le.foll@intel.com>
Thu, 18 Dec 2014 14:07:57 +0000
(14:07 +0000)
committer
Brendan Le Foll
<brendan.le.foll@intel.com>
Thu, 18 Dec 2014 14:07:59 +0000
(14:07 +0000)
test was adding board gpio_count to pin so that 0 would use the info for pin 14
on some boards when asking for aio capability
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/mraa.c
patch
|
blob
|
history
diff --git
a/src/mraa.c
b/src/mraa.c
index
d5fe4f7
..
8230f78
100644
(file)
--- a/
src/mraa.c
+++ b/
src/mraa.c
@@
-257,8
+257,6
@@
mraa_pin_mode_test(int pin, mraa_pinmodes_t mode)
return 1;
break;
case MRAA_PIN_AIO:
- if (pin < plat->aio_count)
- pin = pin + plat->gpio_count;
if (plat->pins[pin].capabilites.aio ==1)
return 1;
break;