diff --git a/src/gatt-database.c b/src/gatt-database.c
index 4af9b81..61eed71 100644
--- a/src/gatt-database.c
+++ b/src/gatt-database.c
return;
fail:
- gatt_db_attribute_read_result(attrib, id, BT_ATT_ERROR_UNLIKELY,
- NULL, 0);
+ gatt_db_attribute_write_result(attrib, id, BT_ATT_ERROR_UNLIKELY);
}
static bool database_add_desc(struct external_service *service,
return;
fail:
- gatt_db_attribute_read_result(attrib, id, BT_ATT_ERROR_UNLIKELY,
- NULL, 0);
+ gatt_db_attribute_write_result(attrib, id, BT_ATT_ERROR_UNLIKELY);
}
static bool database_add_chrc(struct external_service *service,