From 02cd1781154c3dd5905a5fab04346423a524ee38 Mon Sep 17 00:00:00 2001 From: Geng Yu Chao Date: Mon, 15 Jun 2020 18:02:34 +0800 Subject: [PATCH] Update the limited of function esp_ble_get_sendable_packets_num. --- components/bt/host/bluedroid/api/esp_gatt_common_api.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/components/bt/host/bluedroid/api/esp_gatt_common_api.c b/components/bt/host/bluedroid/api/esp_gatt_common_api.c index 4504ffd1d..c7081c3bc 100644 --- a/components/bt/host/bluedroid/api/esp_gatt_common_api.c +++ b/components/bt/host/bluedroid/api/esp_gatt_common_api.c @@ -51,11 +51,21 @@ esp_err_t esp_ble_gatt_set_local_mtu (uint16_t mtu) #if (BLE_INCLUDED == TRUE) extern UINT16 L2CA_GetFreePktBufferNum_LE(void); +/** + * @brief This function is called to get currently sendable packets number on controller, + * the function is called only in BLE running core now. + * + * @return + * sendable packets number on controller + * + */ + uint16_t esp_ble_get_sendable_packets_num (void) { return L2CA_GetFreePktBufferNum_LE(); } + extern UINT16 L2CA_GetCurFreePktBufferNum_LE(UINT16 conn_id); uint16_t esp_ble_get_cur_sendable_packets_num (uint16_t connid) {