From 69ad6bb5d1413bdbec77c3887d0db577453e0e40 Mon Sep 17 00:00:00 2001 From: Rahul Tank Date: Fri, 28 Jun 2024 18:35:12 +0530 Subject: [PATCH] fix(nimble): Added debug print to check for skipped adv report --- components/bt/host/nimble/esp-hci/src/esp_nimble_hci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/bt/host/nimble/esp-hci/src/esp_nimble_hci.c b/components/bt/host/nimble/esp-hci/src/esp_nimble_hci.c index 804ee34260..946c6d6f19 100644 --- a/components/bt/host/nimble/esp-hci/src/esp_nimble_hci.c +++ b/components/bt/host/nimble/esp-hci/src/esp_nimble_hci.c @@ -365,6 +365,7 @@ static int host_rcv_pkt(uint8_t *data, uint16_t len) evbuf = ble_hci_trans_buf_alloc(BLE_HCI_TRANS_BUF_EVT_LO); /* Skip advertising report if we're out of memory */ if (!evbuf) { + ESP_LOGI(TAG, "Skipping advertising report due to low memory"); return 0; } } else {