Private
Public Access
2
0

gpio.c: mraa_gpio_get_* now return -1 in error cases

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2015-04-24 16:07:17 +01:00
parent 0b382100d2
commit 2679a916be
3 changed files with 5 additions and 3 deletions

View File

@@ -292,7 +292,7 @@ class Gpio
}
/**
* Get pin number of Gpio. If raw param is True will return the
* number as used within sysfs
* number as used within sysfs. Invalid will return -1.
*
* @param raw (optional) get the raw gpio number.
* @return Pin number