]> granicus.if.org Git - esp-idf/commitdiff
Component /bt: using esp_ble_gattc_cache_refresh() does not work when open event...
authorzhiweijian <zhiweijian@espressif.com>
Wed, 14 Jun 2017 08:45:17 +0000 (16:45 +0800)
committerzhiweijian <zhiweijian@espressif.com>
Wed, 14 Jun 2017 08:45:17 +0000 (16:45 +0800)
components/bt/bluedroid/bta/gatt/bta_gattc_act.c

index 85ccb08080f1457aca1ee6fb26b1c21070d675dd..21206c0cf154c35dff963d07fc710a1bc5f56be8 100644 (file)
@@ -1013,6 +1013,7 @@ void bta_gattc_disc_cmpl(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data)
 
     if (p_clcb->auto_update == BTA_GATTC_DISC_WAITING) {
         /* start discovery again */
+        p_clcb->auto_update = BTA_GATTC_REQ_WAITING;
         bta_gattc_sm_execute(p_clcb, BTA_GATTC_INT_DISCOVER_EVT, NULL);
     }
     /* get any queued command to proceed */