diff options
| author | ckgt <ckarlsson25@gmail.com> | 2018-03-17 19:04:02 -0400 |
|---|---|---|
| committer | ckgt <ckarlsson25@gmail.com> | 2018-03-17 19:04:02 -0400 |
| commit | e1de178c2bc00625609357233a86dcb6a4c029d8 (patch) | |
| tree | 44bf00e750f91fb2375ff211512b7b1737b14d36 /include/nmeaparse | |
| parent | e39d33af7b2e7a6185f32bfe34a19d3614a0406e (diff) | |
Fixed checksum=0 treated as invalid. Added csv of registered handlers for parser.
Diffstat (limited to 'include/nmeaparse')
| -rw-r--r-- | include/nmeaparse/NMEAParser.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/nmeaparse/NMEAParser.h b/include/nmeaparse/NMEAParser.h index 65024c4..d57bb20 100644 --- a/include/nmeaparse/NMEAParser.h +++ b/include/nmeaparse/NMEAParser.h @@ -42,6 +42,7 @@ public: std::string name; //name of the command std::vector<std::string> parameters; //list of parameters from the command std::string checksum; + bool checksumIsCalculated; uint8_t parsedChecksum; uint8_t calculatedChecksum; @@ -57,7 +58,6 @@ public: }; public: NMEASentence(); - //NMEASentence(const NMEASentence& ref); virtual ~NMEASentence(); bool checksumOK() const; @@ -104,6 +104,7 @@ public: Event<void(const NMEASentence&)> onSentence; // called every time parser receives any NMEA sentence void setSentenceHandler(std::string cmdKey, std::function<void(const NMEASentence&)> handler); //one handler called for any named sentence where name is the "cmdKey" + std::string getRegisteredSentenceHandlersCSV(); // show a list of message names that currently have handlers. // Byte streaming functions void readByte (uint8_t b); |
