Private
Public Access
2
0

mraa.c: allow imraa lock file to be read if platform is unknown

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2016-03-23 10:50:03 +00:00
parent 8c0aa5af2c
commit 35b2426170

View File

@@ -991,10 +991,6 @@ mraa_add_subplatform(mraa_platform_t subplatformtype, const char* uart_dev)
uint32_t
mraa_add_from_lockfile(const char* imraa_lock_file) {
mraa_platform_t type = plat->platform_type;
if( type== MRAA_NULL_PLATFORM || type == MRAA_UNKNOWN_PLATFORM) {
syslog(LOG_ERR, "imraa: Failed to add subplatform on null/unkown platform");
return -1;
}
char* buffer = NULL;
long fsize;
int i = 0;