mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-20 17:52:35 +00:00
Unset received SNR/RSSI values upon receiving packet via MQTT (#5668)
This commit is contained in:
@@ -96,6 +96,9 @@ inline void onReceiveProto(char *topic, byte *payload, size_t length)
|
|||||||
|
|
||||||
UniquePacketPoolPacket p = packetPool.allocUniqueCopy(*e.packet);
|
UniquePacketPoolPacket p = packetPool.allocUniqueCopy(*e.packet);
|
||||||
p->via_mqtt = true; // Mark that the packet was received via MQTT
|
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 (p->which_payload_variant == meshtastic_MeshPacket_decoded_tag) {
|
||||||
if (moduleConfig.mqtt.encryption_enabled) {
|
if (moduleConfig.mqtt.encryption_enabled) {
|
||||||
|
|||||||
Reference in New Issue
Block a user