Small tweaks

This commit is contained in:
PaulZC
2022-01-12 18:02:50 +00:00
parent 185c6c200a
commit 34b982841a
2 changed files with 2 additions and 1 deletions
@@ -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 *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 *workingNMEAPtr = getNMEAWorkingNMEAPtr(); // Get a pointer to the working copy NMEA data
uint8_t nmeaMaxLength = getNMEAMaxLength(); uint8_t nmeaMaxLength = getNMEAMaxLength();
// Check the checksum: the checksum is the exclusive-OR of all characters between the $ and the * // Check the checksum: the checksum is the exclusive-OR of all characters between the $ and the *
uint8_t nmeaChecksum = 0; uint8_t nmeaChecksum = 0;
uint8_t charsChecked = 1; // Start after the $ uint8_t charsChecked = 1; // Start after the $
+1 -1
View File
@@ -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 // 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". // 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; const uint8_t NMEA_GGA_MAX_LENGTH = 90;