Update UdpMulticastThread.h

This commit is contained in:
Ben Meadors 2025-01-06 19:55:40 -06:00 committed by Thomas Göttgens
parent d79ae87bf9
commit 2530cda145

View File

@ -36,7 +36,7 @@ class UdpMulticastThread : public concurrency::OSThread
bool isPacketDecoded = pb_decode_from_bytes(bytes, packetLength, &meshtastic_MeshPacket_msg, &mp);
if (isPacketDecoded && router) {
UniquePacketPoolPacket p = packetPool.allocUniqueCopy(mp);
// Unset received SNR/RSSI which might have been added by the MQTT gateway
// Unset received SNR/RSSI
p->rx_snr = 0;
p->rx_rssi = 0;
router->enqueueReceivedMessage(p.release());
@ -67,4 +67,4 @@ class UdpMulticastThread : public concurrency::OSThread
IPAddress udpIpAddress;
AsyncUDP udp;
};
#endif // ARCH_ESP32
#endif // ARCH_ESP32