diff --git a/src/SparkFun_u-blox_GNSS_Arduino_Library.cpp b/src/SparkFun_u-blox_GNSS_Arduino_Library.cpp index 82eeb09..fe36d01 100644 --- a/src/SparkFun_u-blox_GNSS_Arduino_Library.cpp +++ b/src/SparkFun_u-blox_GNSS_Arduino_Library.cpp @@ -1769,6 +1769,7 @@ void SFE_UBLOX_GNSS::process(uint8_t incoming, ubxPacket *incomingUBX, uint8_t r uint8_t *workingLengthPtr = getNMEAWorkingLengthPtr(); // Get a pointer to the working copy length uint8_t *workingNMEAPtr = getNMEAWorkingNMEAPtr(); // Get a pointer to the working copy NMEA data uint8_t nmeaMaxLength = getNMEAMaxLength(); + // Check the checksum: the checksum is the exclusive-OR of all characters between the $ and the * uint8_t nmeaChecksum = 0; uint8_t charsChecked = 1; // Start after the $ diff --git a/src/u-blox_structs.h b/src/u-blox_structs.h index 3d6dcaf..89d88f5 100644 --- a/src/u-blox_structs.h +++ b/src/u-blox_structs.h @@ -2252,7 +2252,7 @@ struct nmeaAutomaticFlags // The max length for NMEA messages should be 82 bytes, but GGA messages can exceed that if they include the // extra decimal places for "High Precision". // -// To be safe, let's allocate 90 bytes to store the message +// To be safe, let's allocate 90 bytes to store the GGA message const uint8_t NMEA_GGA_MAX_LENGTH = 90;