From 8ddc31a001c88b6166efab29227aa83610c8232a Mon Sep 17 00:00:00 2001 From: zhanghaipeng Date: Thu, 28 Dec 2023 17:30:57 +0800 Subject: [PATCH] fix(bt/bluedroid): Fix ble app unregister no event --- components/bt/host/bluedroid/bta/gatt/bta_gattc_act.c | 1 - 1 file changed, 1 deletion(-) diff --git a/components/bt/host/bluedroid/bta/gatt/bta_gattc_act.c b/components/bt/host/bluedroid/bta/gatt/bta_gattc_act.c index c007ead623..e667de72d3 100644 --- a/components/bt/host/bluedroid/bta/gatt/bta_gattc_act.c +++ b/components/bt/host/bluedroid/bta/gatt/bta_gattc_act.c @@ -161,7 +161,6 @@ void bta_gattc_disable(tBTA_GATTC_CB *p_cb) for (i = 0; i < BTA_GATTC_CL_MAX; i ++) { if (p_cb->cl_rcb[i].in_use) { p_cb->state = BTA_GATTC_STATE_DISABLING; - p_cb->cl_rcb[i].in_use = false; /* don't deregister HH GATT IF */ /* HH GATT IF will be deregistered by bta_hh_le_deregister when disable HH */ #if (defined BTA_HH_LE_INCLUDED && BTA_HH_LE_INCLUDED == TRUE)