mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-06-05 21:04:49 +00:00
mesh: Fix Friend os_mempool_size calculation
X-Original-Commit: a0b45a5f3d7d81641cca8fc6f4461296199a4db0
This commit is contained in:
@@ -28,8 +28,6 @@
|
||||
#include "foundation.h"
|
||||
#include "friend.h"
|
||||
|
||||
#define FRIEND_BUF_SIZE (BT_MESH_ADV_DATA_SIZE - BT_MESH_NET_HDR_LEN)
|
||||
|
||||
/* We reserve one extra buffer for each friendship, since we need to be able
|
||||
* to resend the last sent PDU, which sits separately outside of the queue.
|
||||
*/
|
||||
@@ -37,7 +35,7 @@
|
||||
|
||||
static os_membuf_t friend_buf_mem[OS_MEMPOOL_SIZE(
|
||||
FRIEND_BUF_COUNT,
|
||||
BT_MESH_ADV_DATA_SIZE + BT_MESH_ADV_USER_DATA_SIZE)];
|
||||
BT_MESH_ADV_DATA_SIZE + BT_MESH_MBUF_HEADER_SIZE)];
|
||||
|
||||
struct os_mbuf_pool friend_os_mbuf_pool;
|
||||
static struct os_mempool friend_buf_mempool;
|
||||
|
||||
Reference in New Issue
Block a user