more aprspacketlib fix

This commit is contained in:
richonguzman 2024-06-24 13:24:11 -04:00
parent 1d62395d79
commit d1b17deccc
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ namespace APRSPacketLib {
bool thirdParty = false;
int firstColonIndex = packet.indexOf(":");
if (firstColonIndex > 0 && firstColonIndex < packet.length() && packet[firstColonIndex + 1] == '}') thirdParty = true;
if (firstColonIndex > 5 && firstColonIndex < (packet.length() - 1) && packet[firstColonIndex + 1] == '}') thirdParty = true;
String temp;
if (thirdParty) { // only header is used