Private
Public Access
2
0

common.hpp: use common.hpp instead of renaming C functions in interface

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-07-04 15:42:04 +01:00
parent 720008f61f
commit 4b0f24367a
6 changed files with 24 additions and 15 deletions

View File

@@ -60,8 +60,10 @@ int main (int argc, char **argv)
return MRAA_ERROR_UNSPECIFIED;
}
int response = gpio->dir(mraa::DIR_OUT);
if (response != MRAA_SUCCESS)
mraa_result_print((mraa_result_t) MRAA_SUCCESS);
if (response != MRAA_SUCCESS) {
mraa::printError(response);
return 1;
}
while (running == 0) {
response = gpio->write(1);