diff --git a/src/gatt-database.c b/src/gatt-database.c
index 21c9e95..c7b2223 100644
--- a/src/gatt-database.c
+++ b/src/gatt-database.c
struct external_chrc *chrc)
{
if (!(chrc->props & BT_GATT_CHRC_PROP_NOTIFY) &&
- !(chrc->props & BT_GATT_CHRC_PROP_INDICATE)) {
- DBG("No need to create CCC entry for characteristic");
+ !(chrc->props & BT_GATT_CHRC_PROP_INDICATE))
return true;
- }
chrc->ccc = service_add_ccc(service->attrib, service->database,
ccc_write_cb, chrc, NULL);
return false;
}
+ DBG("Created CCC entry for characteristic");
+
return true;
}
bt_uuid_t uuid;
uint8_t value[2];
- if (!chrc->ext_props) {
- DBG("No need to create CEP entry for characteristic");
+ if (!chrc->ext_props)
return true;
- }
bt_uuid16_create(&uuid, GATT_CHARAC_EXT_PROPER_UUID);
cep = gatt_db_service_add_descriptor(service->attrib, &uuid,
return false;
}
+ DBG("Created CEP entry for characteristic");
+
return true;
}