Private
Public Access
2
0

mraa.c: Fixed bug in detected main/sub platform name and type logging

Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Henry Bruce
2015-07-30 12:15:03 -07:00
committed by Brendan Le Foll
parent 93d326bff4
commit c9cfb42326

View File

@@ -141,8 +141,13 @@ mraa_init()
}
#endif
syslog(LOG_NOTICE, "libmraa initialised for platform '%s' of type %d", mraa_get_platform_name(), mraa_get_platform_type());
current_plat = plat;
syslog(LOG_NOTICE, "libmraa initialised for platform '%s' of type %d", mraa_get_platform_name(), mraa_get_platform_type());
if (mraa_has_sub_platform()) {
mraa_select_sub_platform();
syslog(LOG_NOTICE, "libmraa initialised for sub-platform '%s' of type %d", mraa_get_platform_name(), mraa_get_platform_type());
mraa_select_main_platform();
}
return MRAA_SUCCESS;
}