summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorckgt <ckarlsson25@gmail.com>2015-04-23 19:47:10 -0400
committerckgt <ckarlsson25@gmail.com>2015-04-23 19:47:10 -0400
commitcf8b635c56e5b633d8bf74114f3977654a8301b7 (patch)
treee6ba1fa38313ae927ff28a5a14ad8c1348266911
parenta1604ec8c4fb9c4bafa6c8093789b190bcffbac2 (diff)
Initial Commit
-rw-r--r--README.md11
1 files changed, 4 insertions, 7 deletions
diff --git a/README.md b/README.md
index 4369c41..4a8b700 100644
--- a/README.md
+++ b/README.md
@@ -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]);
};