From 7aaa6c893aa89a61d20460e1ab89ac419435c3a1 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 8 May 2017 15:48:02 +0300 Subject: [PATCH] shared/gatt-client: Insert included attribute with handle This ensures the local representation matches exactly the handle used by the remote in its database. --- src/shared/gatt-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c index 013472170..3caed5fa2 100644 --- a/src/shared/gatt-client.c +++ b/src/shared/gatt-client.c @@ -457,7 +457,7 @@ static void discover_incl_cb(bool success, uint8_t att_ecode, if (!tmp) goto failed; - tmp = gatt_db_service_add_included(attr, tmp); + tmp = gatt_db_service_insert_included(attr, handle, tmp); if (!tmp) goto failed; -- 2.47.3