From 7703634bc55fd20a91c4575d525b48fe04c3c8a4 Mon Sep 17 00:00:00 2001 From: Henry Bruce Date: Thu, 3 Dec 2015 15:24:10 -0800 Subject: [PATCH] mraa.c: Do not return with error if iio devices are not detected Signed-off-by: Henry Bruce Signed-off-by: Brendan Le Foll --- src/mraa.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mraa.c b/src/mraa.c index 28a2c4a..073e1ba 100644 --- a/src/mraa.c +++ b/src/mraa.c @@ -143,9 +143,8 @@ mraa_init() } #endif - mraa_result_t iio_result = mraa_iio_detect(); - if (iio_result != MRAA_SUCCESS) - return iio_result; + // Look for IIO devices + mraa_iio_detect(); syslog(LOG_NOTICE, "libmraa initialised for platform '%s' of type %d", mraa_get_platform_name(), mraa_get_platform_type()); return MRAA_SUCCESS; -- 2.7.4