only digi with packetbuffer25seg

This commit is contained in:
richonguzman 2024-06-18 16:45:01 -04:00
parent 4bf4e781df
commit 691f60925a
2 changed files with 28 additions and 30 deletions

View File

@ -162,6 +162,7 @@ void loop() {
}
if (Config.digi.mode == 2 || backUpDigiMode) { // If Digi enabled
STATION_Utils::clean25SegBuffer();
DIGI_Utils::processLoRaPacket(packet); // Send received packet to Digi
}
@ -178,7 +179,6 @@ void loop() {
}
STATION_Utils::processOutputPacketBuffer();
STATION_Utils::clean25SegBuffer();
show_display(firstLine, secondLine, thirdLine, fourthLine, fifthLine, sixthLine, seventhLine, 0);
Utils::checkRebootTime();

View File

@ -200,7 +200,6 @@ namespace APRS_IS_Utils {
if ((packet.substring(0, 3) == "\x3c\xff\x01") && (packet.indexOf("TCPIP") == -1) && (packet.indexOf("NOGATE") == -1) && (packet.indexOf("RFONLY") == -1)) {
Sender = packet.substring(3, packet.indexOf(">"));
if (Sender != Config.callsign && Utils::checkValidCallsign(Sender)) {
if (STATION_Utils::check25SegBuffer(Sender, packet.substring(packet.indexOf(":")+2))) {
STATION_Utils::updateLastHeard(Sender);
Utils::typeOfPacket(packet.substring(3), 0); // LoRa-APRS
AddresseeAndMessage = packet.substring(packet.indexOf("::") + 2);
@ -233,7 +232,6 @@ namespace APRS_IS_Utils {
}
}
}
}
void processAPRSISPacket(const String& packet) {
String Sender, AddresseeAndMessage, Addressee, receivedMessage;