Correct maxNMEAByteCount

This commit is contained in:
PaulZC
2021-04-14 10:07:52 +01:00
parent 700406956a
commit 039004ef02
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1293,8 +1293,8 @@ private:
uint8_t rollingChecksumA; //Rolls forward as we receive incoming bytes. Checked against the last two A/B checksum bytes uint8_t rollingChecksumA; //Rolls forward as we receive incoming bytes. Checked against the last two A/B checksum bytes
uint8_t rollingChecksumB; //Rolls forward as we receive incoming bytes. Checked against the last two A/B checksum bytes uint8_t rollingChecksumB; //Rolls forward as we receive incoming bytes. Checked against the last two A/B checksum bytes
int16_t nmeaByteCounter; //Count all NMEA message bytes. int8_t nmeaByteCounter; //Count all NMEA message bytes.
const int16_t maxNMEAByteCount = 1024; // Abort NMEA message reception if nmeaByteCounter exceeds this const int8_t maxNMEAByteCount = 82; // Abort NMEA message reception if nmeaByteCounter exceeds this (https://en.wikipedia.org/wiki/NMEA_0183#Message_structure)
uint8_t nmeaAddressField[6]; // NMEA Address Field - includes the start character (*) uint8_t nmeaAddressField[6]; // NMEA Address Field - includes the start character (*)
boolean logThisNMEA(); // Return true if we should log this NMEA message boolean logThisNMEA(); // Return true if we should log this NMEA message
boolean processThisNMEA(); // Return true if we should pass this NMEA message to processNMEA boolean processThisNMEA(); // Return true if we should pass this NMEA message to processNMEA