digiMode self hearing fix
This commit is contained in:
parent
54bbede56c
commit
6bd6cce82b
|
|
@ -60,10 +60,10 @@ namespace DIGI_Utils {
|
||||||
if (packet.substring(0, 3) == "\x3c\xff\x01") {
|
if (packet.substring(0, 3) == "\x3c\xff\x01") {
|
||||||
Serial.println(" ---> APRS LoRa Packet");
|
Serial.println(" ---> APRS LoRa Packet");
|
||||||
Sender = packet.substring(3,packet.indexOf(">"));
|
Sender = packet.substring(3,packet.indexOf(">"));
|
||||||
|
if (Sender != Config.callsign) {
|
||||||
STATION_Utils::updateLastHeard(Sender);
|
STATION_Utils::updateLastHeard(Sender);
|
||||||
//STATION_Utils::updatePacketBuffer(packet);
|
//STATION_Utils::updatePacketBuffer(packet);
|
||||||
Utils::typeOfPacket(packet.substring(3), "Digi");
|
Utils::typeOfPacket(packet.substring(3), "Digi");
|
||||||
if (Sender != Config.callsign) {
|
|
||||||
AddresseeAndMessage = packet.substring(packet.indexOf("::")+2);
|
AddresseeAndMessage = packet.substring(packet.indexOf("::")+2);
|
||||||
Addressee = AddresseeAndMessage.substring(0,AddresseeAndMessage.indexOf(":"));
|
Addressee = AddresseeAndMessage.substring(0,AddresseeAndMessage.indexOf(":"));
|
||||||
Addressee.trim();
|
Addressee.trim();
|
||||||
|
|
@ -81,9 +81,9 @@ namespace DIGI_Utils {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} /*else {
|
||||||
Serial.println(" ---> LoRa Packet Ignored (first 3 bytes or NOGATE)\n");
|
Serial.println(" ---> LoRa Packet Ignored (first 3 bytes or NOGATE)\n");
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue