int ret = SYSTEM_INFO_ERROR_NONE;
ret = system_info_get_platform_bool(key, feature);
if (ret != SYSTEM_INFO_ERROR_NONE) {
- printf("[Message] Failed to feature (%s).\n\n", key);
+ printf("[Message] Failed to get feature (%s).\n\n", key);
return PERIPHERAL_ERROR_NOT_SUPPORTED;
}
return PERIPHERAL_ERROR_NONE;
}
ret = __get_feature(key_feature, &feature);
- if (ret != PERIPHERAL_ERROR_NONE) {
- printf("[Message] Feature %s not supported\n", key_feature);
+ if (ret != PERIPHERAL_ERROR_NONE)
return ret;
- }
+ printf("[Message] Feature %s is %s on the device (tests also verify support).\n", key_feature, feature == true ? "supported" : "not supported");
ret = init_fn(model_name, feature);
if (ret != PERIPHERAL_ERROR_NONE) {