mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-08 16:05:54 +00:00
avoid 3 bytes again
This commit is contained in:
parent
7537c1ee50
commit
49cffe7d0c
2 changed files with 15 additions and 3 deletions
|
|
@ -43,7 +43,12 @@ namespace DIGI_Utils {
|
|||
repeatedPacket += temp0.substring(0, temp0.indexOf(",")); // tocall
|
||||
repeatedPacket += ",";
|
||||
repeatedPacket += path;
|
||||
repeatedPacket += packet.substring(packet.indexOf(":"));
|
||||
|
||||
String payload = packet.substring(packet.indexOf(":"));
|
||||
if (payload.indexOf("\x3c\xff\x01") != -1) {
|
||||
payload = payload.substring(0, payload.indexOf("\x3c\xff\x01"));
|
||||
}
|
||||
repeatedPacket += payload;
|
||||
return repeatedPacket;
|
||||
} else {
|
||||
return "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue