diff --git a/src/aprs_is_utils.cpp b/src/aprs_is_utils.cpp index 41e27656..bbae6d06 100644 --- a/src/aprs_is_utils.cpp +++ b/src/aprs_is_utils.cpp @@ -160,7 +160,7 @@ namespace APRS_IS_Utils { Sender = packet.substring(3, packet.indexOf(">")); if (Sender != Config.callsign) { // avoid listening yourself by digirepeating STATION_Utils::updateLastHeard(Sender); - Utils::typeOfPacket(packet, "LoRa-APRS"); + Utils::typeOfPacket(packet.substring(3), "LoRa-APRS"); AddresseeAndMessage = packet.substring(packet.indexOf("::") + 2); Addressee = AddresseeAndMessage.substring(0, AddresseeAndMessage.indexOf(":")); Addressee.trim(); diff --git a/src/digi_utils.cpp b/src/digi_utils.cpp index 81557361..8b23dd64 100644 --- a/src/digi_utils.cpp +++ b/src/digi_utils.cpp @@ -65,7 +65,7 @@ namespace DIGI_Utils { Sender = packet.substring(3, packet.indexOf(">")); if (Sender != Config.callsign) { STATION_Utils::updateLastHeard(Sender); - Utils::typeOfPacket(packet, "Digi"); + Utils::typeOfPacket(packet.substring(3), "Digi"); AddresseeAndMessage = packet.substring(packet.indexOf("::") + 2); Addressee = AddresseeAndMessage.substring(0, AddresseeAndMessage.indexOf(":")); Addressee.trim();