From: Yulong Date: Thu, 28 Sep 2017 06:09:02 +0000 (-0400) Subject: component/bt: Fix the bug of total attr didn't reset when init the gattc cache. X-Git-Tag: v3.1-dev~220^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f7a2cc37b3a3980b8c8a02c282bcd29a7622de3b;p=esp-idf component/bt: Fix the bug of total attr didn't reset when init the gattc cache. --- diff --git a/components/bt/bluedroid/bta/gatt/bta_gattc_cache.c b/components/bt/bluedroid/bta/gatt/bta_gattc_cache.c index 5e0943a9bb..d9f67ef209 100644 --- a/components/bt/bluedroid/bta/gatt/bta_gattc_cache.c +++ b/components/bt/bluedroid/bta/gatt/bta_gattc_cache.c @@ -187,6 +187,7 @@ tBTA_GATT_STATUS bta_gattc_init_cache(tBTA_GATTC_SERV *p_srvc_cb) p_srvc_cb->cur_srvc_idx = 0; p_srvc_cb->cur_char_idx = 0; p_srvc_cb->next_avail_idx = 0; + p_srvc_cb->total_attr = 0; } return BTA_GATT_OK;