Skip to content

Commit

Permalink
new byte for syslog
Browse files Browse the repository at this point in the history
  • Loading branch information
richonguzman committed Dec 11, 2024
1 parent 62107a5 commit f3e0830
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gps_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f3e0830

Please sign in to comment.