mraa.c: add error if adding a MRAA_GENERIC_FIRMATA subplat and not supported
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -1039,6 +1039,10 @@ mraa_add_subplatform(mraa_platform_t subplatformtype, const char* uart_dev)
|
|||||||
return MRAA_SUCCESS;
|
return MRAA_SUCCESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
if (subplatformtype == MRAA_GENERIC_FIRMATA) {
|
||||||
|
syslog(LOG_NOTICE, "mraa: Cannot add Firmata platform as support not compiled in");
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return MRAA_ERROR_INVALID_PARAMETER;
|
return MRAA_ERROR_INVALID_PARAMETER;
|
||||||
|
|||||||
Reference in New Issue
Block a user