From 10f450b3f6b2d0f930246eb83c94bc246cc9e338 Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Sun, 1 Mar 2015 10:12:04 +0000 Subject: [PATCH] x86.c: unknown init now returns MRAA_UNKNOWN_PLATFORM 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 --- src/x86/x86.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/x86/x86.c b/src/x86/x86.c index a02943d..6aaf821 100644 --- a/src/x86/x86.c +++ b/src/x86/x86.c @@ -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); } -- 2.7.4