typeOfPacket fix

This commit is contained in:
richonguzman 2024-05-11 12:27:13 -04:00
parent d7c1c70f10
commit 5e0294fb14
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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();