You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2022/08/22 16:54:38 UTC
[mynewt-nimble] branch master updated: nimble/host: Fix host event buffer count
This is an automated email from the ASF dual-hosted git repository.
andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push:
new ef4f44a0 nimble/host: Fix host event buffer count
ef4f44a0 is described below
commit ef4f44a02e74214a0be780884581906c4327bb93
Author: Michal Gorecki <mi...@codecoup.pl>
AuthorDate: Fri Aug 19 14:24:43 2022 +0200
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 13b6fe29..aeace63a 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