intel_edison_fab_c.c: ignore failed tristate writes when doing direction set
authorBrendan Le Foll <brendan.le.foll@intel.com>
Thu, 11 Dec 2014 10:50:57 +0000 (10:50 +0000)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Thu, 11 Dec 2014 10:50:57 +0000 (10:50 +0000)
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/x86/intel_edison_fab_c.c

index 62c120d..bf99361 100644 (file)
@@ -97,7 +97,9 @@ mraa_result_t
 mraa_intel_edison_gpio_dir_pre(mraa_gpio_context dev, gpio_dir_t dir)
 {
     if (mraa_gpio_write(tristate, 0) != MRAA_SUCCESS) {
-        return MRAA_ERROR_PLATFORM_NOT_INITIALISED;
+        // call can sometimes fail, this does not actually mean much except
+        // that the kernel drivers don't always behave very well
+        syslog(LOG_NOTICE, "edison: Failed to write to tristate");
     }
 
     if (dev->phy_pin >= 0) {