From ef4f44a02e74214a0be780884581906c4327bb93 Mon Sep 17 00:00:00 2001 From: Michal Gorecki Date: Fri, 19 Aug 2022 14:24:43 +0200 Subject: [PATCH] nimble/host: Fix host event buffer count Fixes the problem of not putting events such as, for example ble_hs_hci_evt_le_scan_timeout to the queue. --- nimble/host/src/ble_hs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nimble/host/src/ble_hs.c b/nimble/host/src/ble_hs.c index 13b6fe29e..aeace63af 100644 --- a/nimble/host/src/ble_hs.c +++ b/nimble/host/src/ble_hs.c @@ -30,7 +30,8 @@ #include "nimble/nimble_port.h" #endif -#define BLE_HS_HCI_EVT_COUNT MYNEWT_VAL(BLE_TRANSPORT_EVT_COUNT) +#define BLE_HS_HCI_EVT_COUNT (MYNEWT_VAL(BLE_TRANSPORT_EVT_COUNT) + \ + MYNEWT_VAL(BLE_TRANSPORT_EVT_DISCARDABLE_COUNT)) static void ble_hs_event_rx_hci_ev(struct ble_npl_event *ev); #if NIMBLE_BLE_CONNECT