{
const struct element_id *exp_id = user_data;
const struct service *service = data;
- bt_uuid_t uuid;
- bt_string_to_uuid(&uuid, service->primary.uuid);
if (service->id.instance == exp_id->instance)
- return !bt_uuid_cmp(&uuid, &exp_id->uuid);
+ return !bt_uuid_cmp(&service->id.uuid, &exp_id->uuid);
return false;
}
{
const struct element_id *exp_id = user_data;
const struct characteristic *chars = data;
- bt_uuid_t uuid;
- bt_string_to_uuid(&uuid, chars->ch.uuid);
if (exp_id->instance == chars->id.instance)
- return !bt_uuid_cmp(&uuid, &exp_id->uuid);
+ return !bt_uuid_cmp(&chars->id.uuid, &exp_id->uuid);
return false;
}