From dc54e7331f8878de6947b84cc8e82517e9e22bdb Mon Sep 17 00:00:00 2001 From: geeksville Date: Fri, 10 Jul 2020 13:52:26 -0700 Subject: [PATCH] memory is tight on the nrf52832 board (for now) - so don't allocate too much --- src/mesh/Router.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesh/Router.cpp b/src/mesh/Router.cpp index 9c9bedd69..74bb21960 100644 --- a/src/mesh/Router.cpp +++ b/src/mesh/Router.cpp @@ -24,8 +24,8 @@ (MAX_RX_TOPHONE + MAX_RX_FROMRADIO + 2 * MAX_TX_QUEUE + \ 2) // max number of packets which can be in flight (either queued from reception or queued for sending) -static MemoryPool staticPool(MAX_PACKETS); -// static MemoryDynamic staticPool; +// static MemoryPool staticPool(MAX_PACKETS); +static MemoryDynamic staticPool; Allocator &packetPool = staticPool; @@ -36,7 +36,7 @@ Allocator &packetPool = staticPool; */ Router::Router() : fromRadioQueue(MAX_RX_FROMRADIO) { -// This is called pre main(), don't touch anything here, the following code is not safe + // This is called pre main(), don't touch anything here, the following code is not safe /* DEBUG_MSG("Size of NodeInfo %d\n", sizeof(NodeInfo)); DEBUG_MSG("Size of SubPacket %d\n", sizeof(SubPacket));