mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-03 10:13:44 +00:00
Update UdpMulticastThread.h
This commit is contained in:
parent
d79ae87bf9
commit
2530cda145
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user