diff options
Diffstat (limited to 'attrib/gatttool.c')
-rw-r--r-- | attrib/gatttool.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/attrib/gatttool.c b/attrib/gatttool.c index 9f2ead97f..10415a86d 100644 --- a/attrib/gatttool.c +++ b/attrib/gatttool.c @@ -35,6 +35,7 @@ #include <bluetooth/hci.h> #include <bluetooth/hci_lib.h> +#include "src/shared/util.h" #include "lib/uuid.h" #include "att.h" #include "btio/btio.h" @@ -426,7 +427,7 @@ static void char_desc_cb(guint8 status, const guint8 *pdu, guint16 plen, handle = att_get_u16(value); if (format == 0x01) - uuid = att_get_uuid16(&value[2]); + bt_uuid16_create(&uuid, get_le16(&value[2])); else uuid = att_get_uuid128(&value[2]); |