File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 3535 (MAX_RX_TOPHONE + MAX_RX_FROMRADIO + 2 * MAX_TX_QUEUE + \
3636 2 ) // max number of packets which can be in flight (either queued from reception or queued for sending)
3737
38+ static MemoryDynamic<meshtastic_MeshPacket> dynamicPool;
39+ Allocator<meshtastic_MeshPacket> &packetPool = dynamicPool;
40+ #elif defined(ARCH_STM32WL)
41+ // On STM32 there isn't enough heap left over for the rest of the firmware if we allocate this statically.
42+ // For now, make it dynamic again.
43+ #define MAX_PACKETS \
44+ (MAX_RX_TOPHONE + MAX_RX_FROMRADIO + 2 * MAX_TX_QUEUE + \
45+ 2 ) // max number of packets which can be in flight (either queued from reception or queued for sending)
46+
3847static MemoryDynamic<meshtastic_MeshPacket> dynamicPool;
3948Allocator<meshtastic_MeshPacket> &packetPool = dynamicPool;
4049#else
You can’t perform that action at this time.
0 commit comments