x86.c: unknown init now returns MRAA_UNKNOWN_PLATFORM
authorBrendan Le Foll <brendan.le.foll@intel.com>
Sun, 1 Mar 2015 10:12:04 +0000 (10:12 +0000)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Sun, 1 Mar 2015 10:12:06 +0000 (10:12 +0000)
This stops the legacy beahviour that was to initialise as a gen1 galileo if we
failed to find a valid dmi name. Closes #142

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/x86/x86.c

index a02943d..6aaf821 100644 (file)
@@ -64,9 +64,8 @@ mraa_x86_platform()
                 platform_type = MRAA_INTEL_GALILEO_GEN1;
                 plat = mraa_intel_galileo_rev_d();
             } else {
-                syslog(LOG_ERR, "Platform not supported, initialising as MRAA_INTEL_GALILEO_GEN1");
-                platform_type = MRAA_INTEL_GALILEO_GEN1;
-                plat = mraa_intel_galileo_rev_d();
+                syslog(LOG_ERR, "Platform not supported, not initialising");
+                platform_type = MRAA_UNKNOWN_PLATFORM;
             }
             free(line);
         }