]> granicus.if.org Git - esp-idf/commitdiff
component/bt: Fix the bug of total attr didn't reset when init the gattc cache.
authorYulong <huangyulong@espressif.com>
Thu, 28 Sep 2017 06:09:02 +0000 (02:09 -0400)
committerYulong <huangyulong@espressif.com>
Thu, 28 Sep 2017 06:09:02 +0000 (02:09 -0400)
components/bt/bluedroid/bta/gatt/bta_gattc_cache.c

index 5e0943a9bb80955f5812882aab44f6389f44bb45..d9f67ef2092258bea7715d45ce3e4b4d2d567f0a 100644 (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;