Prepare to make MemoryDynamic

This commit is contained in:
geeksville
2020-06-12 11:53:59 -07:00
parent dc169675e2
commit 88b91de197
3 changed files with 58 additions and 36 deletions

View File

@@ -23,7 +23,9 @@
(MAX_RX_TOPHONE + MAX_RX_FROMRADIO + MAX_TX_QUEUE + \
2) // max number of packets which can be in flight (either queued from reception or queued for sending)
MemoryPool<MeshPacket> packetPool(MAX_PACKETS);
static MemoryPool<MeshPacket> staticPool(MAX_PACKETS);
Allocator<MeshPacket> &packetPool = staticPool;
/**
* Constructor