You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ry...@apache.org on 2020/09/15 06:41:44 UTC
[mynewt-nimble] 03/09: mesh/net.c: replace dup_cache size magic
value
This is an automated email from the ASF dual-hosted git repository.
rymek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit b4522c051f46af070061f495e10823874b122f15
Author: Krzysztof Kopyściński <kr...@codecoup.pl>
AuthorDate: Thu Sep 3 09:13:24 2020 +0200
mesh/net.c: replace dup_cache size magic value
---
nimble/host/mesh/src/net.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nimble/host/mesh/src/net.c b/nimble/host/mesh/src/net.c
index 240314d..887ceda 100644
--- a/nimble/host/mesh/src/net.c
+++ b/nimble/host/mesh/src/net.c
@@ -86,7 +86,7 @@ struct bt_mesh_net bt_mesh = {
#endif
};
-static u32_t dup_cache[4];
+static u32_t dup_cache[MYNEWT_VAL(BLE_MESH_MSG_CACHE_SIZE)];
static int dup_cache_next;
static bool check_dup(struct os_mbuf *data)