gpio: remove direction error printing
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
@@ -379,7 +379,6 @@ mraa_gpio_dir(mraa_gpio_context dev, gpio_dir_t dir)
|
|||||||
int direction = open(filepath, O_RDWR);
|
int direction = open(filepath, O_RDWR);
|
||||||
|
|
||||||
if (direction == -1) {
|
if (direction == -1) {
|
||||||
fprintf(stderr, "Failed to open direction for writing!\n");
|
|
||||||
return MRAA_ERROR_INVALID_RESOURCE;
|
return MRAA_ERROR_INVALID_RESOURCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user