From: zhiweijian Date: Wed, 14 Jun 2017 08:45:17 +0000 (+0800) Subject: Component /bt: using esp_ble_gattc_cache_refresh() does not work when open event... X-Git-Tag: v2.1-rc1~36^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60d5b677e77ff22946fe1f06eaceab990d3f88f7;p=esp-idf Component /bt: using esp_ble_gattc_cache_refresh() does not work when open event callback. --- diff --git a/components/bt/bluedroid/bta/gatt/bta_gattc_act.c b/components/bt/bluedroid/bta/gatt/bta_gattc_act.c index 85ccb08080..21206c0cf1 100644 --- a/components/bt/bluedroid/bta/gatt/bta_gattc_act.c +++ b/components/bt/bluedroid/bta/gatt/bta_gattc_act.c @@ -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 */