Fix #149: Use a simple heap allocator for now, after 1.0 we can go to

fixed sized pools to protect against fragmentation.
This commit is contained in:
geeksville
2020-06-12 12:11:18 -07:00
parent 88b91de197
commit f0b8f10665
3 changed files with 22 additions and 2 deletions

View File

@@ -23,8 +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)
// static MemoryPool<MeshPacket> staticPool(MAX_PACKETS);
static MemoryDynamic<MeshPacket> staticPool;
static MemoryPool<MeshPacket> staticPool(MAX_PACKETS);
Allocator<MeshPacket> &packetPool = staticPool;
/**