Skip to content

Commit

Permalink
Merge pull request #61 from CDOT-CV/log-processing-bug-fix
Browse files Browse the repository at this point in the history
Log processing bug fix
  • Loading branch information
Michael7371 authored Feb 16, 2024
2 parents 373de19 + 1b8284c commit 0dc3c22
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public void writeTo(OutputStream os) throws IOException {
}



// Removes the 1609.2 header but will keep the 1609.1 header
public byte[] removeHeader(byte[] packet) {
String hexPacket = HexUtils.toHexString(packet);
String hexPacketParsed = "";
Expand All @@ -122,7 +122,7 @@ public byte[] removeHeader(byte[] packet) {
logger.debug("Start index for: " + key + " is: " + startIndex);
if (startIndex == -1) {
logger.debug("Message does not have header for: " + key);
break;
continue;
} else if (startIndex <= HEADER_SIZE_1609) {
logger.debug("Message has supported header. startIndex: " + startIndex + " msgFlag: " + startFlag);
hexPacketParsed = hexPacket;
Expand Down

0 comments on commit 0dc3c22

Please sign in to comment.