component/bt: Fix the bug of total attr didn't reset when init the gattc cache.

This commit is contained in:
Yulong 2017-09-28 02:09:02 -04:00
parent c65f12bb45
commit f7a2cc37b3

View file

@ -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;