Easier to error check against
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
mraa_result_t mraa_set_log_level(int level);
/**
- * Return the Platform's Name, If no platform detected return "Unknown"
+ * Return the Platform's Name, If no platform detected return NULL
*
* @return platform name
*/
}
/**
- * Return Platform Name. "Unknown" if no platform inited.
+ * Return Platform Name. Returns NULL if no platform inited.
*
* @return platform name
*/
char*
mraa_get_platform_name()
{
- if (plat == NULL)
- return "Unknown";
+ if (plat == NULL) {
+ return NULL;
+ }
return (char*) plat->platform_name;
}