mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/btdm_fix_remove_bonded_device_warnning' into 'master'
Component/bt: fix remove bonded device warnning See merge request idf/esp-idf!3704
This commit is contained in:
commit
484d8ab7ed
@ -178,6 +178,11 @@ void BTA_GATTC_Open(tBTA_GATTC_IF client_if, BD_ADDR remote_bda, tBTA_ADDR_TYPE
|
|||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
void BTA_GATTC_CancelOpen(tBTA_GATTC_IF client_if, BD_ADDR remote_bda, BOOLEAN is_direct)
|
void BTA_GATTC_CancelOpen(tBTA_GATTC_IF client_if, BD_ADDR remote_bda, BOOLEAN is_direct)
|
||||||
{
|
{
|
||||||
|
//If the registration callback is NULL, return
|
||||||
|
if(bta_sys_is_register(BTA_ID_GATTC) == FALSE) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
tBTA_GATTC_API_CANCEL_OPEN *p_buf;
|
tBTA_GATTC_API_CANCEL_OPEN *p_buf;
|
||||||
|
|
||||||
if ((p_buf = (tBTA_GATTC_API_CANCEL_OPEN *) osi_malloc(sizeof(tBTA_GATTC_API_CANCEL_OPEN))) != NULL) {
|
if ((p_buf = (tBTA_GATTC_API_CANCEL_OPEN *) osi_malloc(sizeof(tBTA_GATTC_API_CANCEL_OPEN))) != NULL) {
|
||||||
@ -925,7 +930,10 @@ void BTA_GATTC_Refresh(BD_ADDR remote_bda, bool erase_flash)
|
|||||||
bta_gattc_cache_reset(remote_bda);
|
bta_gattc_cache_reset(remote_bda);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
//If the registration callback is NULL, return
|
||||||
|
if(bta_sys_is_register(BTA_ID_GATTC) == FALSE) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
tBTA_GATTC_API_OPEN *p_buf;
|
tBTA_GATTC_API_OPEN *p_buf;
|
||||||
|
|
||||||
if ((p_buf = (tBTA_GATTC_API_OPEN *) osi_malloc(sizeof(tBTA_GATTC_API_OPEN))) != NULL) {
|
if ((p_buf = (tBTA_GATTC_API_OPEN *) osi_malloc(sizeof(tBTA_GATTC_API_OPEN))) != NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user