Skip decoding for Repeaters

This commit is contained in:
Ben Meadors 2023-01-28 13:28:57 -06:00
parent f45a25b358
commit d9af4f46fa

View File

@ -300,8 +300,8 @@ void Router::sniffReceived(const meshtastic_MeshPacket *p, const meshtastic_Rout
bool perhapsDecode(meshtastic_MeshPacket *p)
{
// LOG_DEBUG("\n\n** perhapsDecode payloadVariant - %d\n\n", p->which_payloadVariant);
if (config.device.role == meshtastic_Config_DeviceConfig_Role_REPEATER)
return false;
if (p->which_payload_variant == meshtastic_MeshPacket_decoded_tag)
return true; // If packet was already decoded just return