Yank repeater module and just guard clause the alloc

This commit is contained in:
Ben Meadors
2023-01-28 09:11:12 -06:00
parent e229a67d25
commit 103f1992dd
5 changed files with 3 additions and 68 deletions

View File

@@ -24,6 +24,8 @@ bool RoutingModule::handleReceivedProtobuf(const meshtastic_MeshPacket &mp, mesh
meshtastic_MeshPacket *RoutingModule::allocReply()
{
if (config.device.role == meshtastic_Config_DeviceConfig_Role_REPEATER)
return NULL;
assert(currentRequest);
// We only consider making replies if the request was a legit routing packet (not just something we were sniffing)