diff options
Diffstat (limited to 'bta/gatt/bta_gatts_utils.c')
-rw-r--r-- | bta/gatt/bta_gatts_utils.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bta/gatt/bta_gatts_utils.c b/bta/gatt/bta_gatts_utils.c index e59f6b2..8f00793 100644 --- a/bta/gatt/bta_gatts_utils.c +++ b/bta/gatt/bta_gatts_utils.c @@ -2,7 +2,7 @@ ** ** Name: bta_gattc_utils.c ** -** Description: This file contains the GATT client utility +** Description: This file contains the GATT client utility ** function. ** ** Copyright (c) 2003-2010, Broadcom Corp., All Rights Reserved. @@ -124,7 +124,7 @@ tBTA_GATTS_SRVC_CB * bta_gatts_find_srvc_cb_by_srvc_id(tBTA_GATTS_CB *p_cb, UINT APPL_TRACE_DEBUG1("bta_gatts_find_srvc_cb_by_srvc_id service_id=%d", service_id); for (i = 0; i < BTA_GATTS_MAX_SRVC_NUM; i ++) { - if (p_cb->srvc_cb[i].in_use && + if (p_cb->srvc_cb[i].in_use && p_cb->srvc_cb[i].service_id == service_id) { APPL_TRACE_DEBUG1("bta_gatts_find_srvc_cb_by_srvc_id found service cb index =%d", i); @@ -150,14 +150,14 @@ tBTA_GATTS_SRVC_CB * bta_gatts_find_srvc_cb_by_attr_id(tBTA_GATTS_CB *p_cb, UINT { if (/* middle service */ (i < (BTA_GATTS_MAX_SRVC_NUM - 1) && - p_cb->srvc_cb[i].in_use && - p_cb->srvc_cb[i + 1].in_use && + p_cb->srvc_cb[i].in_use && + p_cb->srvc_cb[i + 1].in_use && attr_id >= p_cb->srvc_cb[i].service_id && attr_id < p_cb->srvc_cb[i + 1].service_id) || /* last active service */ (i < (BTA_GATTS_MAX_SRVC_NUM - 1) && - p_cb->srvc_cb[i].in_use && - !p_cb->srvc_cb[i + 1].in_use && + p_cb->srvc_cb[i].in_use && + !p_cb->srvc_cb[i + 1].in_use && attr_id >= p_cb->srvc_cb[i].service_id) || /* last service incb */ (i == (BTA_GATTS_MAX_SRVC_NUM - 1) && @@ -220,4 +220,4 @@ BOOLEAN bta_gatts_uuid_compare(tBT_UUID tar, tBT_UUID src) -#endif +#endif |