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 <brendan.le.foll@intel.com>
This commit is contained in:
@@ -64,9 +64,8 @@ mraa_x86_platform()
|
|||||||
platform_type = MRAA_INTEL_GALILEO_GEN1;
|
platform_type = MRAA_INTEL_GALILEO_GEN1;
|
||||||
plat = mraa_intel_galileo_rev_d();
|
plat = mraa_intel_galileo_rev_d();
|
||||||
} else {
|
} else {
|
||||||
syslog(LOG_ERR, "Platform not supported, initialising as MRAA_INTEL_GALILEO_GEN1");
|
syslog(LOG_ERR, "Platform not supported, not initialising");
|
||||||
platform_type = MRAA_INTEL_GALILEO_GEN1;
|
platform_type = MRAA_UNKNOWN_PLATFORM;
|
||||||
plat = mraa_intel_galileo_rev_d();
|
|
||||||
}
|
}
|
||||||
free(line);
|
free(line);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user