Skip to content

Commit

Permalink
Merge pull request #535 from CDOT-CV/dev
Browse files Browse the repository at this point in the history
Log Processing Bug Fix
  • Loading branch information
dan-du-car authored Feb 18, 2024
2 parents 10ca681 + 0dc3c22 commit 6f3f426
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 6f3f426

Please sign in to comment.