mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-03-15 09:53:58 +01:00
colonIndex fix3
This commit is contained in:
parent
f1de8d2df0
commit
1ceaf159ba
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue