From bac3bd69ecee6a531d11bdd34b4490b473761e15 Mon Sep 17 00:00:00 2001 From: sh123 Date: Wed, 6 Jul 2022 16:54:13 +0300 Subject: [PATCH] Signal report for mic-e packets --- ax25_payload.cpp | 5 ++++- loraprs_service.cpp | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ax25_payload.cpp b/ax25_payload.cpp index 1a256cf..71d3ad4 100644 --- a/ax25_payload.cpp +++ b/ax25_payload.cpp @@ -102,7 +102,10 @@ String Payload::ToString(const String &customComment) const txt += String(":") + info_; - if (info_.startsWith("=") || info_.startsWith("!")) { + if (info_.startsWith("=") || + info_.startsWith("!") || + info_.startsWith("`")) { + txt += customComment; } diff --git a/loraprs_service.cpp b/loraprs_service.cpp index 4fb8152..0f943a5 100644 --- a/loraprs_service.cpp +++ b/loraprs_service.cpp @@ -652,8 +652,7 @@ void Service::processIncomingRawPacketAsServer(const byte *packet, int packetLen int rssi = LoRa.packetRssi(); long frequencyError = LoRa.packetFrequencyError(); #endif - String signalReport = String(" ") + - String("rssi: ") + + String signalReport = String("rssi: ") + String(snr < 0 ? rssi + snr : rssi) + String("dBm, ") + String("snr: ") +