Diff between fc6f87d8f98a529e029d888d098128f658c14792 and ec57950ff57ae879bc0a262c2a94a14d3105b91d

Changed Files

File Additions Deletions Status
profiles/gatt/gas.c +1 -1 modified
profiles/input/hog_device.c +1 -1 modified
profiles/thermometer/thermometer.c +1 -1 modified

Full Patch

diff --git a/profiles/gatt/gas.c b/profiles/gatt/gas.c
index 61e6745..e82513b 100644
--- a/profiles/gatt/gas.c
+++ b/profiles/gatt/gas.c
@@ -208,7 +208,7 @@ static void gatt_descriptors_cb(guint8 status, const guint8 *pdu, guint16 len,
 	if (list == NULL)
 		return;
 
-	if (format != 0x01)
+	if (format != ATT_FIND_INFO_RESP_FMT_16BIT)
 		goto done;
 
 	for (i = 0; i < list->num; i++) {
diff --git a/profiles/input/hog_device.c b/profiles/input/hog_device.c
index 5a1de12..10c5a45 100644
--- a/profiles/input/hog_device.c
+++ b/profiles/input/hog_device.c
@@ -213,7 +213,7 @@ static void discover_descriptor_cb(guint8 status, const guint8 *pdu,
 	if (list == NULL)
 		return;
 
-	if (format != 0x01)
+	if (format != ATT_FIND_INFO_RESP_FMT_16BIT)
 		goto done;
 
 	for (i = 0; i < list->num; i++) {
diff --git a/profiles/thermometer/thermometer.c b/profiles/thermometer/thermometer.c
index ad352a9..6652a41 100644
--- a/profiles/thermometer/thermometer.c
+++ b/profiles/thermometer/thermometer.c
@@ -430,7 +430,7 @@ static void discover_desc_cb(guint8 status, const guint8 *pdu, guint16 len,
 		desc->handle = att_get_u16(value);
 		desc->ch = ch;
 
-		if (format == 0x01)
+		if (format == ATT_FIND_INFO_RESP_FMT_16BIT)
 			desc->uuid = att_get_uuid16(&value[2]);
 		else
 			desc->uuid = att_get_uuid128(&value[2]);