Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit aac251e

Browse files
committed
Correcting change to getEsfDataInfo. calibTtag is only appended once.
1 parent 04d8f4a commit aac251e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SparkFun_Ublox_Arduino_Library.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -4026,11 +4026,11 @@ boolean SFE_UBLOX_GPS::getEsfDataInfo(uint16_t maxWait)
40264026
if (packetCfg.len > (8 + (4 * numMeas))) // The calibTtag is optional - only extract it if it is present
40274027
{
40284028
uint8_t startOfTtag = 8 + (4 * numMeas); // Calculate where the Ttag data starts
4029-
if (numMeas > DEF_NUM_SENS) // Truncate numMeas if required
4029+
if (numMeas > DEF_NUM_SENS) // Truncate numMeas again if required
40304030
numMeas = DEF_NUM_SENS;
40314031
for (uint8_t i = 0; i < numMeas; i++)
40324032
{
4033-
imuMeas.dataTStamp[i] = extractLong(startOfTtag + (byteOffset * i));
4033+
imuMeas.dataTStamp[i] = extractLong(startOfTtag); // calibTtag is only appended once
40344034
}
40354035
}
40364036

0 commit comments

Comments
 (0)