mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-08 16:05:54 +00:00
testing lowerMemory Ussssage
This commit is contained in:
parent
e63d54d9f0
commit
a87cc0be58
7 changed files with 114 additions and 52 deletions
|
|
@ -40,7 +40,13 @@ namespace DIGI_Utils {
|
|||
else {
|
||||
path.replace("WIDE1-" + hop, Config.callsign + "*,WIDE1-" + String(hop.toInt() - 1));
|
||||
}
|
||||
String repeatedPacket = sender + ">" + tocall + "," + path + packet.substring(packet.indexOf(":"));
|
||||
|
||||
String repeatedPacket = sender;
|
||||
repeatedPacket += ">";
|
||||
repeatedPacket += tocall;
|
||||
repeatedPacket += ",";
|
||||
repeatedPacket += path;
|
||||
repeatedPacket += packet.substring(packet.indexOf(":"));
|
||||
return repeatedPacket;
|
||||
}
|
||||
else {
|
||||
|
|
@ -63,7 +69,7 @@ namespace DIGI_Utils {
|
|||
if ((packet.substring(0, 3) == "\x3c\xff\x01") && (packet.indexOf("NOGATE") == -1)) {
|
||||
Sender = packet.substring(3, packet.indexOf(">"));
|
||||
if (Sender != Config.callsign) {
|
||||
if (STATION_Utils::check25SegBuffer(Sender, packet.substring(packet.indexOf(":")+2))) {
|
||||
if (STATION_Utils::check25SegBuffer(Sender, packet.substring(packet.indexOf(":") + 2))) {
|
||||
STATION_Utils::updateLastHeard(Sender);
|
||||
Utils::typeOfPacket(packet.substring(3), 2); // Digi
|
||||
AddresseeAndMessage = packet.substring(packet.indexOf("::") + 2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue