Private
Public Access
2
0

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:
Brendan Le Foll
2016-09-21 14:38:41 +01:00
parent b4cf93f1f8
commit 0b5130335d

View File

@@ -1039,6 +1039,10 @@ mraa_add_subplatform(mraa_platform_t subplatformtype, const char* uart_dev)
return MRAA_SUCCESS;
}
}
#else
if (subplatformtype == MRAA_GENERIC_FIRMATA) {
syslog(LOG_NOTICE, "mraa: Cannot add Firmata platform as support not compiled in");
}
#endif
return MRAA_ERROR_INVALID_PARAMETER;