mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-26 22:33:24 +00:00
Unset received SNR/RSSI values upon receiving packet via MQTT (#5668)
This commit is contained in:
parent
d87b7e49e4
commit
b12aa3f360
@ -96,6 +96,9 @@ inline void onReceiveProto(char *topic, byte *payload, size_t length)
|
||||
|
||||
UniquePacketPoolPacket p = packetPool.allocUniqueCopy(*e.packet);
|
||||
p->via_mqtt = true; // Mark that the packet was received via MQTT
|
||||
// Unset received SNR/RSSI which might have been added by the MQTT gateway
|
||||
p->rx_snr = 0;
|
||||
p->rx_rssi = 0;
|
||||
|
||||
if (p->which_payload_variant == meshtastic_MeshPacket_decoded_tag) {
|
||||
if (moduleConfig.mqtt.encryption_enabled) {
|
||||
|
Loading…
Reference in New Issue
Block a user