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

pull/5662/head
GUVWAF 2024-12-26 10:49:06 +01:00 zatwierdzone przez GitHub
rodzic d87b7e49e4
commit b12aa3f360
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

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