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:
403424e
)
gpio.c: add DEBUG message for owner flag
author
Brendan Le Foll
<brendan.le.foll@intel.com>
Tue, 10 Feb 2015 15:39:45 +0000
(15:39 +0000)
committer
Brendan Le Foll
<brendan.le.foll@intel.com>
Tue, 10 Feb 2015 15:40:02 +0000
(15:40 +0000)
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/gpio/gpio.c
patch
|
blob
|
history
diff --git
a/src/gpio/gpio.c
b/src/gpio/gpio.c
index
ec7f897
..
bbcccba
100644
(file)
--- a/
src/gpio/gpio.c
+++ b/
src/gpio/gpio.c
@@
-573,8
+573,10
@@
mraa_gpio_close(mraa_gpio_context dev)
mraa_result_t
mraa_gpio_owner(mraa_gpio_context dev, mraa_boolean_t own)
{
- if (dev == NULL)
+ if (dev == NULL)
{
return MRAA_ERROR_INVALID_RESOURCE;
+ }
+ syslog(LOG_DEBUG, "gpio: Set owner to %d", (int) own);
dev->owner = own;
return MRAA_SUCCESS;
}