Unset received SNR/RSSI values upon receiving packet via MQTT ()

This commit is contained in:
GUVWAF 2024-12-26 10:49:06 +01:00 committed by GitHub
parent d87b7e49e4
commit b12aa3f360
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {