do { \
bool is_supported = false; \
if (!system_info_get_platform_bool(feature_name1, &is_supported)) { \
- if (is_supported == false) { \
- LOGE("[%s] NOT_SUPPORTED(0x%08x)", __FUNCTION__, BT_ERROR_NOT_SUPPORTED); \
- return BT_ERROR_NOT_SUPPORTED; \
+ if (is_supported == true) {\
+ break; \
} \
} else { \
LOGE("[%s] Fail to get the system feature: [%s]", __FUNCTION__, feature_name1); \
} \
if (!system_info_get_platform_bool(feature_name2, &is_supported)) { \
- if (is_supported == false) { \
+ if (is_supported == true) { \
+ break; \
+ } else {\
LOGE("[%s] NOT_SUPPORTED(0x%08x)", __FUNCTION__, BT_ERROR_NOT_SUPPORTED); \
return BT_ERROR_NOT_SUPPORTED; \
} \