Skip to content

Commit 6f2f433

Browse files
committed
Fixed byte offsets when parsing the USB-ESF-RAW message.
1 parent dc09d3f commit 6f2f433

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SparkFun_u-blox_GNSS_Arduino_Library.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2437,8 +2437,8 @@ void SFE_UBLOX_GNSS::processUBXpacket(ubxPacket *msg)
24372437
{
24382438
for (int i = 0; (i < DEF_NUM_SENS) && ((i * 8) < (msg->len - 4)); i++)
24392439
{
2440-
packetUBXESFRAW->data.data[i].data.all = extractLong(msg, 8 + (i * 8));
2441-
packetUBXESFRAW->data.data[i].sTag = extractLong(msg, 8 + (i * 8) + 4);
2440+
packetUBXESFRAW->data.data[i].data.all = extractLong(msg, 4 + (i * 8));
2441+
packetUBXESFRAW->data.data[i].sTag = extractLong(msg, 8 + (i * 8));
24422442
}
24432443

24442444
//Mark all datums as fresh (not read before)

0 commit comments

Comments
 (0)