From bb466180789421f09ccc8ccce4b18dbb6c822ea5 Mon Sep 17 00:00:00 2001 From: medentem Date: Sat, 28 Dec 2024 12:36:26 -0600 Subject: [PATCH] map coverage filter on the way in --- src/mesh/RadioLibInterface.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mesh/RadioLibInterface.cpp b/src/mesh/RadioLibInterface.cpp index e416160eb..55f31a122 100644 --- a/src/mesh/RadioLibInterface.cpp +++ b/src/mesh/RadioLibInterface.cpp @@ -409,6 +409,12 @@ void RadioLibInterface::handleReceiveInterrupt() mp->want_ack = !!(radioBuffer.header.flags & PACKET_FLAGS_WANT_ACK_MASK); mp->via_mqtt = !!(radioBuffer.header.flags & PACKET_FLAGS_VIA_MQTT_MASK); + // ----------------- Copy coverage_filter in the packet object ------------------ + mp->coverage_filter.size = BLOOM_FILTER_SIZE_BYTES; + memcpy(mp->coverage_filter.bytes, + radioBuffer.header.coverage_filter.data(), BLOOM_FILTER_SIZE_BYTES); + // ----------------------------------------------------------------------------- + addReceiveMetadata(mp); mp->which_payload_variant =