Private
Public Access
2
0

gpio.c: add DEBUG message for owner flag

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2015-02-10 15:39:45 +00:00
parent 403424e4c0
commit c1b96680c9

View File

@@ -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;
}