mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(bt/bluedroid): Fix ble adv and scan status when deinit bluedroid
This commit is contained in:
parent
7364d276f7
commit
3263b4e75f
@ -577,6 +577,14 @@ void bta_dm_disable (tBTA_DM_MSG *p_data)
|
|||||||
bta_dm_disable_search_and_disc();
|
bta_dm_disable_search_and_disc();
|
||||||
bta_dm_cb.disabling = TRUE;
|
bta_dm_cb.disabling = TRUE;
|
||||||
|
|
||||||
|
#if BLE_INCLUDED == TRUE
|
||||||
|
/* reset scan activity status*/
|
||||||
|
btm_cb.ble_ctr_cb.scan_activity = 0;
|
||||||
|
|
||||||
|
/* reset advertising activity status*/
|
||||||
|
btm_cb.ble_ctr_cb.inq_var.state = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
#if BLE_INCLUDED == TRUE && BTA_GATT_INCLUDED == TRUE
|
#if BLE_INCLUDED == TRUE && BTA_GATT_INCLUDED == TRUE
|
||||||
BTM_BleClearBgConnDev();
|
BTM_BleClearBgConnDev();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user