Diff between 0732383dcb542b4c1581c2e051199a07bb398d42 and 4e8ab0f65724d74505c2f0234f27596879f04202

Changed Files

File Additions Deletions Status
android/gatt.c +8 -1 modified

Full Patch

diff --git a/android/gatt.c b/android/gatt.c
index 58bc22d..84fba64 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -4045,6 +4045,12 @@ failed:
 				HAL_OP_GATT_CLIENT_SET_ADV_DATA, status);
 }
 
+static void test_command_result(guint8 status, const guint8 *pdu,
+					guint16 len, gpointer user_data)
+{
+	DBG("status: %d", status);
+}
+
 static uint8_t test_read_write(bdaddr_t *bdaddr, bt_uuid_t *uuid, uint16_t op,
 						uint16_t u2,uint16_t u3,
 						uint16_t u4, uint16_t u5)
@@ -4106,7 +4112,8 @@ static uint8_t test_read_write(bdaddr_t *bdaddr, bt_uuid_t *uuid, uint16_t op,
 	if (!length)
 		return HAL_STATUS_FAILED;
 
-	g_attrib_send(dev->attrib, 0, pdu, length, NULL, NULL, NULL);
+	g_attrib_send(dev->attrib, 0, pdu, length, test_command_result, NULL,
+									NULL);
 
 	return HAL_STATUS_SUCCESS;
 }