Add station-only WiFi UDP bridge with eight authenticated peers
This commit is contained in:
1 parent
7bc3aeb234
commit
5e25faa3d0
45 files changed
+2699
-35
No files matched your search
@@ -168,7 +168,11 @@ StaticPoolPacketManager::StaticPoolPacketManager(int pool_size)
|
||||
}
|
||||
|
||||
mesh::Packet* StaticPoolPacketManager::allocNew() {
|
||||
return unused.removeByIdx(0); // just get first one (returns NULL if empty)
|
||||
auto* packet = unused.removeByIdx(0); // NULL if empty.
|
||||
#if defined(WITH_UDP_BRIDGE)
|
||||
if (packet) packet->udp_bridge_ingress = false;
|
||||
#endif
|
||||
return packet;
|
||||
}
|
||||
|
||||
void StaticPoolPacketManager::free(mesh::Packet* packet) {
|
||||
|
||||
Reference in new issue
Block a user