// Target API
int nRet = device_add_callback(callback_type[enum_counter], DeviceChangedCallback, NULL);
- if (false == bIsDisplayFeatureSupported)
+ if (callback_type[enum_counter] == DEVICE_CALLBACK_DISPLAY_STATE && false == bIsDisplayFeatureSupported)
{
PRINT_RESULT(DEVICE_ERROR_NOT_SUPPORTED, nRet, "device_add_callback", DeviceGetError(nRet));
- return 0;
+ continue;
}
if ( nRet != DEVICE_ERROR_NONE )
{
// Target API
nRet = device_remove_callback(callback_type[enum_counter], DeviceChangedCallback);
- if (false == bIsDisplayFeatureSupported)
+ if (callback_type[enum_counter] == DEVICE_CALLBACK_DISPLAY_STATE && false == bIsDisplayFeatureSupported)
{
PRINT_RESULT(DEVICE_ERROR_NOT_SUPPORTED, nRet, "device_remove_callback", DeviceGetError(nRet));
- return 0;
+ continue;
}
if ( nRet != DEVICE_ERROR_NONE )
{