diff --git a/src/attrib-server.c b/src/attrib-server.c
index fe127e6..0f2cced 100644
--- a/src/attrib-server.c
+++ b/src/attrib-server.c
.value.u16 = GATT_CLIENT_CHARAC_CFG_UUID
};
-static inline void put_uuid_le(const bt_uuid_t *src, void *dst)
-{
- if (src->type == BT_UUID16)
- put_le16(src->value.u16, dst);
- else
- /* Convert from 128-bit BE to LE */
- bswap_128(&src->value.u128, dst);
-}
-
static void attrib_free(void *data)
{
struct attribute *a = data;
put_le16(a->handle, value);
/* Attribute Value */
- put_uuid_le(&a->uuid, &value[2]);
+ bt_uuid_to_le(&a->uuid, &value[2]);
}
length = enc_find_info_resp(format, adl, pdu, len);