mraa.c: Do not return with error if iio devices are not detected
authorHenry Bruce <henry.bruce@intel.com>
Thu, 3 Dec 2015 23:24:10 +0000 (15:24 -0800)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Tue, 15 Dec 2015 10:42:06 +0000 (10:42 +0000)
Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/mraa.c

index 28a2c4a..073e1ba 100644 (file)
@@ -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;