Correct maxNMEAByteCount
This commit is contained in:
@@ -52,7 +52,7 @@ SFE_UBLOX_GNSS::SFE_UBLOX_GNSS(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
_logNMEA.all = 0; // Default to passing no NMEA messages to the file buffer
|
_logNMEA.all = 0; // Default to passing no NMEA messages to the file buffer
|
||||||
_processNMEA.all = SFE_UBLOX_FILTER_NMEA_ALL; // Default to passing all NMEA messages to process NMEA
|
_processNMEA.all = SFE_UBLOX_FILTER_NMEA_ALL; // Default to passing all NMEA messages to processNMEA
|
||||||
}
|
}
|
||||||
|
|
||||||
//Stop all automatic message processing. Free all used RAM
|
//Stop all automatic message processing. Free all used RAM
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user