Skip to content

Commit

Permalink
Merge branch 'bugfix/host_flw_ctrl' into 'master'
Browse files Browse the repository at this point in the history
NimBLE: Fixed mismatch of number of completed packtes in host flow control

Closes BLEQABR23-113

See merge request espressif/esp-idf!23432
  • Loading branch information
rahult-github committed May 19, 2023
2 parents af06168 + aceaa87 commit 59b7a49
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion components/bt/host/nimble/nimble
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,14 @@ notify_task(void *arg)

/* Check if the MBUFs are available */
if (os_msys_num_free() >= MIN_REQUIRED_MBUF) {
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);
do {
om = ble_hs_mbuf_from_flat(payload, sizeof(payload));
assert(om != NULL);
}
if (om == NULL) {
/* Memory not available for mbuf */
ESP_LOGE(tag, "No MBUFs available from pool, retry..");
vTaskDelay(100 / portTICK_PERIOD_MS);
}
} while (om == NULL);

rc = ble_gatts_notify_custom(conn_handle, notify_handle, om);
if (rc != 0) {
Expand Down

0 comments on commit 59b7a49

Please sign in to comment.