This commit is contained in:
richonguzman 2023-09-09 12:29:47 -03:00
parent c6094c59e8
commit 1a01adda9c
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ String getDistance(String packet) {
encodedBytePosition = packet.indexOf(":=") + 14; encodedBytePosition = packet.indexOf(":=") + 14;
} }
if (encodedBytePosition != 0) { if (encodedBytePosition != 0) {
if (String(packet[encodedBytePosition]) == "G" || String(packet[encodedBytePosition]) == "Q") { if (String(packet[encodedBytePosition]) == "G" || String(packet[encodedBytePosition]) == "Q" || String(packet[encodedBytePosition]) == "[") {
return decodeEncodedGPS(packet); return decodeEncodedGPS(packet);
} else { } else {
return getReceivedGPS(packet); return getReceivedGPS(packet);