mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-20 00:36:01 -04:00
NimBLE: Fixed mismatch of number of completed packtes in host flow control
This commit is contained in:
parent
fa6a743f67
commit
aceaa87ea0
@ -1 +1 @@
|
||||
Subproject commit 8a8585ac0bcf41331e022df8e413c3586d731bfb
|
||||
Subproject commit bc55a00e0d7830043718efed56af15168bb27e6b
|
@ -185,14 +185,14 @@ notify_task(void *arg)
|
||||
|
||||
/* Check if the MBUFs are available */
|
||||
if (os_msys_num_free() >= MIN_REQUIRED_MBUF) {
|
||||
do {
|
||||
om = ble_hs_mbuf_from_flat(payload, sizeof(payload));
|
||||
if (om == NULL) {
|
||||
/* Memory not available for mbuf */
|
||||
ESP_LOGE(tag, "No MBUFs available from pool, retry..");
|
||||
vTaskDelay(100 / portTICK_PERIOD_MS);
|
||||
om = ble_hs_mbuf_from_flat(payload, sizeof(payload));
|
||||
assert(om != NULL);
|
||||
}
|
||||
} while (om == NULL);
|
||||
|
||||
rc = ble_gatts_notify_custom(conn_handle, notify_handle, om);
|
||||
if (rc != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user