From 6f2f43385d5c07d56fe73809dfc2d8fb945ae065 Mon Sep 17 00:00:00 2001 From: Noah Parker Date: Fri, 7 May 2021 13:17:23 -0400 Subject: [PATCH] Fixed byte offsets when parsing the USB-ESF-RAW message. --- src/SparkFun_u-blox_GNSS_Arduino_Library.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SparkFun_u-blox_GNSS_Arduino_Library.cpp b/src/SparkFun_u-blox_GNSS_Arduino_Library.cpp index ad09f35..f8e8c01 100644 --- a/src/SparkFun_u-blox_GNSS_Arduino_Library.cpp +++ b/src/SparkFun_u-blox_GNSS_Arduino_Library.cpp @@ -2437,8 +2437,8 @@ void SFE_UBLOX_GNSS::processUBXpacket(ubxPacket *msg) { for (int i = 0; (i < DEF_NUM_SENS) && ((i * 8) < (msg->len - 4)); i++) { - packetUBXESFRAW->data.data[i].data.all = extractLong(msg, 8 + (i * 8)); - packetUBXESFRAW->data.data[i].sTag = extractLong(msg, 8 + (i * 8) + 4); + packetUBXESFRAW->data.data[i].data.all = extractLong(msg, 4 + (i * 8)); + packetUBXESFRAW->data.data[i].sTag = extractLong(msg, 8 + (i * 8)); } //Mark all datums as fresh (not read before)