Skip to content

Commit 728e5c8

Browse files
authored
Merge pull request #5 from ACRIOS-Systems/bugfix/findUbxMessageLen_ret_wrong
findUbxMessageLen was returning wrong length in case startIdx!=0
2 parents 33f88d5 + 23f9d94 commit 728e5c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lang/cpp/src/parseUbxMessageBase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ int32_t ParseUbxMessageBase::findUbxMessageLen(const uint8_t *buf, uint16_t len,
2727
{
2828
if ((startIdx + IDX_LEN_H + 1U) <= len)
2929
{
30-
ret = startIdx + SerializeCommon::UbxControlBytesSize + buf[startIdx + IDX_LEN_L] + (buf[startIdx + IDX_LEN_H] << 8U);
30+
ret = SerializeCommon::UbxControlBytesSize + buf[startIdx + IDX_LEN_L] + (buf[startIdx + IDX_LEN_H] << 8U);
3131
}
3232
}
3333

0 commit comments

Comments
 (0)