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

Commit 440ef4f

Browse files
authored
Merge pull request #55 from mayopan/LargerUBXFrameCounter
Long UBX packet may be lost as checksum failed.
2 parents 92eb39f + cdcf86b commit 440ef4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SparkFun_Ublox_Arduino_Library.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ class SFE_UBLOX_GPS
522522
boolean autoPVT = false; //Whether autoPVT is enabled or not
523523
boolean autoPVTImplicitUpdate = true; // Whether autoPVT is triggered by accessing stale data (=true) or by a call to checkUblox (=false)
524524
boolean commandAck = false; //This goes true after we send a command and it's ack'd
525-
uint8_t ubxFrameCounter;
525+
uint16_t ubxFrameCounter; //It counts all UBX frame. [Fixed header(2bytes), CLS(1byte), ID(1byte), length(2bytes), payload(x bytes), checksums(2bytes)]
526526

527527
uint8_t rollingChecksumA; //Rolls forward as we receive incoming bytes. Checked against the last two A/B checksum bytes
528528
uint8_t rollingChecksumB; //Rolls forward as we receive incoming bytes. Checked against the last two A/B checksum bytes

0 commit comments

Comments
 (0)