not callsign filtering from aprs-is feed
This commit is contained in:
parent
0c09f5a934
commit
4bf4e781df
|
|
@ -124,6 +124,7 @@ namespace APRS_IS_Utils {
|
|||
String outputPacket = packet.substring(0, packet.indexOf(","));
|
||||
outputPacket.concat(",TCPIP,WIDE1-1,");
|
||||
outputPacket.concat(Config.callsign);
|
||||
outputPacket.concat("*");
|
||||
switch (packetType) {
|
||||
case 0: // gps
|
||||
if (packet.indexOf(":=") > 0) {
|
||||
|
|
@ -239,7 +240,6 @@ namespace APRS_IS_Utils {
|
|||
if (!packet.startsWith("#")) {
|
||||
if (Config.aprs_is.messagesToRF && packet.indexOf("::") > 0) {
|
||||
Sender = packet.substring(0, packet.indexOf(">"));
|
||||
if (Utils::checkValidCallsign(Sender)) {
|
||||
AddresseeAndMessage = packet.substring(packet.indexOf("::") + 2);
|
||||
Addressee = AddresseeAndMessage.substring(0, AddresseeAndMessage.indexOf(":"));
|
||||
Addressee.trim();
|
||||
|
|
@ -288,7 +288,7 @@ namespace APRS_IS_Utils {
|
|||
}
|
||||
} else {
|
||||
Utils::print("Received Message from APRS-IS : " + packet);
|
||||
if (STATION_Utils::wasHeard(Addressee) && Utils::checkValidCallsign(Addressee)) {
|
||||
if (STATION_Utils::wasHeard(Addressee)) {
|
||||
STATION_Utils::addToOutputPacketBuffer(buildPacketToTx(packet, 1));
|
||||
display_toggle(true);
|
||||
lastScreenOn = millis();
|
||||
|
|
@ -296,7 +296,6 @@ namespace APRS_IS_Utils {
|
|||
}
|
||||
}
|
||||
show_display(firstLine, secondLine, thirdLine, fourthLine, fifthLine, sixthLine, seventhLine, 0);
|
||||
}
|
||||
} else if (Config.aprs_is.objectsToRF && packet.indexOf(":;") > 0) {
|
||||
Utils::println("Received Object from APRS-IS : " + packet);
|
||||
STATION_Utils::addToOutputPacketBuffer(buildPacketToTx(packet, 5));
|
||||
|
|
|
|||
Loading…
Reference in New Issue