colonIndex fix3

This commit is contained in:
richonguzman 2024-06-24 11:18:42 -04:00
parent f1de8d2df0
commit 1ceaf159ba

View file

@ -177,12 +177,6 @@ namespace APRS_IS_Utils {
if (packet != "") {
if ((packet.substring(0, 3) == "\x3c\xff\x01") && (packet.indexOf("NOGATE") == -1) && (packet.indexOf("RFONLY") == -1)) {
int firstColonIndex = packet.indexOf(":");
Serial.print("firstColon : ");
Serial.print(firstColonIndex);
Serial.print(" y siguiente: ");
Serial.println(packet[firstColonIndex + 1]);
if (firstColonIndex > 0 && packet[firstColonIndex + 1] != '}' && packet.indexOf("TCPIP") == -1) {
const String& Sender = packet.substring(3, packet.indexOf(">"));
if (Sender != Config.callsign && Utils::checkValidCallsign(Sender)) {