mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
Merge branch 'bugfix/btdm_blufi_send_custom_data_will_congested_after_connection_is_broken_v4.1' into 'release/v4.1'
component/bt: fix Blufi sends customer data will congested when connection is broken(backport v4.1) See merge request espressif/esp-idf!11848
This commit is contained in:
@ -537,6 +537,13 @@ void btc_blufi_send_encap(uint8_t type, uint8_t *data, int total_data_len)
|
|||||||
}
|
}
|
||||||
|
|
||||||
retry:
|
retry:
|
||||||
|
if (blufi_env.is_connected == false) {
|
||||||
|
BTC_TRACE_WARNING("%s ble connection is broken\n", __func__);
|
||||||
|
osi_free(hdr);
|
||||||
|
hdr = NULL;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (esp_ble_get_cur_sendable_packets_num(BTC_GATT_GET_CONN_ID(blufi_env.conn_id)) > 0) {
|
if (esp_ble_get_cur_sendable_packets_num(BTC_GATT_GET_CONN_ID(blufi_env.conn_id)) > 0) {
|
||||||
btc_blufi_send_notify((uint8_t *)hdr,
|
btc_blufi_send_notify((uint8_t *)hdr,
|
||||||
((hdr->fc & BLUFI_FC_CHECK) ?
|
((hdr->fc & BLUFI_FC_CHECK) ?
|
||||||
|
Reference in New Issue
Block a user