From f3e08304738dd3b1bc37de72166b36cd69f54aae Mon Sep 17 00:00:00 2001 From: richonguzman Date: Wed, 11 Dec 2024 18:03:13 -0300 Subject: [PATCH] new byte for syslog --- src/gps_utils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gps_utils.cpp b/src/gps_utils.cpp index c8778901..a1df132c 100644 --- a/src/gps_utils.cpp +++ b/src/gps_utils.cpp @@ -197,7 +197,8 @@ namespace GPS_Utils { encodedBytePosition = packet.indexOf(":=") + 14; } if (encodedBytePosition != 0) { - if (String(packet[encodedBytePosition]) == "G" || String(packet[encodedBytePosition]) == "Q" || String(packet[encodedBytePosition]) == "[" || String(packet[encodedBytePosition]) == "H") { + char currentChar = packet[encodedBytePosition]; + if (currentChar == 'G' || currentChar == 'Q' || currentChar == '[' || currentChar == 'H' || currentChar == 'X') { return decodeEncodedGPS(packet); } else { return getReceivedGPS(packet);