Skip to content
Snippets Groups Projects
Commit f979392c authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Fix included service parsing (1/3)

Bug: 65637368
Test: sl4a GattIncludedServiceTest
Change-Id: Icb882d411a75a91e3fea050f00c40e76de3539de
parent dba42be3
No related branches found
No related tags found
No related merge requests found
......@@ -1218,10 +1218,10 @@ static void bta_gattc_get_gatt_db_impl(tBTA_GATTC_SERV* p_srvc_cb,
tBTA_GATTC_INCLUDED_SVC* p_isvc =
(tBTA_GATTC_INCLUDED_SVC*)list_node(isn);
bta_gattc_fill_gatt_db_el(curr_db_attr, BTGATT_DB_INCLUDED_SERVICE,
p_isvc->handle, 0 /* s_handle */,
0 /* e_handle */, p_isvc->handle, p_isvc->uuid,
0 /* property */);
bta_gattc_fill_gatt_db_el(
curr_db_attr, BTGATT_DB_INCLUDED_SERVICE, p_isvc->handle,
p_isvc->included_service ? p_isvc->included_service->s_handle : 0,
0 /* e_handle */, p_isvc->handle, p_isvc->uuid, 0 /* property */);
curr_db_attr++;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment