mraa: add mraa_get_platform_name
getPlatformName for c++/swig API Closes #35 Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
@@ -332,3 +332,11 @@ mraa_setup_uart(int index)
|
||||
|
||||
return MRAA_SUCCESS;
|
||||
}
|
||||
|
||||
char*
|
||||
mraa_get_platform_name()
|
||||
{
|
||||
if (plat == NULL)
|
||||
return "Unknown";
|
||||
return plat->platform_name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user