From 60d5b677e77ff22946fe1f06eaceab990d3f88f7 Mon Sep 17 00:00:00 2001 From: zhiweijian Date: Wed, 14 Jun 2017 16:45:17 +0800 Subject: [PATCH] Component /bt: using esp_ble_gattc_cache_refresh() does not work when open event callback. --- components/bt/bluedroid/bta/gatt/bta_gattc_act.c | 1 + 1 file changed, 1 insertion(+) 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 */