You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2015/12/18 19:37:05 UTC
[2/6] incubator-mynewt-larva git commit: Don't overallocate for
ble_hs events.
Don't overallocate for ble_hs events.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/fac9b746
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/fac9b746
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/fac9b746
Branch: refs/heads/master
Commit: fac9b7466b05ee15d03436fc739b490b9333c543
Parents: 958a0ae
Author: Christopher Collins <cc...@gmail.com>
Authored: Thu Dec 17 16:27:21 2015 -0800
Committer: Christopher Collins <cc...@gmail.com>
Committed: Fri Dec 18 10:36:51 2015 -0800
----------------------------------------------------------------------
net/nimble/host/src/ble_hs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/fac9b746/net/nimble/host/src/ble_hs.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_hs.c b/net/nimble/host/src/ble_hs.c
index 35e6081..491380a 100644
--- a/net/nimble/host/src/ble_hs.c
+++ b/net/nimble/host/src/ble_hs.c
@@ -63,8 +63,8 @@ static os_membuf_t g_hci_cmd_buf[OS_MEMPOOL_SIZE(HCI_CMD_BUFS,
#define BLE_HS_PKT_MAX BLE_HS_NUM_MBUFS
struct os_mempool g_hci_os_event_pool;
-static os_membuf_t g_hci_os_event_buf[OS_MEMPOOL_BYTES(HCI_NUM_OS_EVENTS,
- HCI_OS_EVENT_BUF_SIZE)];
+static os_membuf_t g_hci_os_event_buf[OS_MEMPOOL_SIZE(HCI_NUM_OS_EVENTS,
+ HCI_OS_EVENT_BUF_SIZE)];
static os_membuf_t ble_hs_mbuf_mem[BLE_HS_MBUF_MEMPOOL_SIZE];
static struct os_mempool ble_hs_mbuf_mempool;