Blink-IO.cpp: use mraa_result_t instead of int
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -59,7 +59,7 @@ int main (int argc, char **argv)
|
||||
if (gpio == NULL) {
|
||||
return MRAA_ERROR_UNSPECIFIED;
|
||||
}
|
||||
int response = gpio->dir(mraa::DIR_OUT);
|
||||
mraa_result_t response = gpio->dir(mraa::DIR_OUT);
|
||||
if (response != MRAA_SUCCESS) {
|
||||
mraa::printError(response);
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user