diff options
| author | ckgt <ckarlsson25@gmail.com> | 2015-04-23 19:47:10 -0400 |
|---|---|---|
| committer | ckgt <ckarlsson25@gmail.com> | 2015-04-23 19:47:10 -0400 |
| commit | cf8b635c56e5b633d8bf74114f3977654a8301b7 (patch) | |
| tree | e6ba1fa38313ae927ff28a5a14ad8c1348266911 | |
| parent | a1604ec8c4fb9c4bafa6c8093789b190bcffbac2 (diff) | |
Initial Commit
| -rw-r--r-- | README.md | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -45,11 +45,7 @@ This is all you need to use the GPS NMEA sentence data. - Standard: ```` - GPGGA, - GPGSA, - GPGSV, - GPRMC, - GPVTG + GPGGA, GPGSA, GPGSV, GPRMC, GPVTG ```` * **NMEA Generation** of "standard" and custom sentences. @@ -89,9 +85,10 @@ The handler for "MYNMEA" is called. This is where you can catch the sentence and // bad checksum, but valid syntax } if( nmea.parameters.size() < 3 ){ - // missing data, throw something + // missing data, throw something. + // catch it at the read*() call. } - int mydata = parseInt(nmea.parameters[3]); + int mydata = parseInt(nmea.parameters[2]); }; |
