diff options
author | iain <iain@linux.intel.com> | 2011-08-16 12:28:54 +0100 |
---|---|---|
committer | iain <iain@linux.intel.com> | 2011-08-16 12:28:54 +0100 |
commit | bd79bc963435166c968f7390504cc4fc40304fab (patch) | |
tree | 913e5b746f2ff63f857180ea246d097ca8d24701 | |
parent | b18f1272d2e78da054c866d912fbc67e0d8b4dc4 (diff) |
Add a comment explaining the RMC check better
RMC can have an optional 12th field, but we just ignore it. Add a comment
explaining that better
-rw-r--r-- | src/nmea-parser.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nmea-parser.c b/src/nmea-parser.c index 53a540a..41e9f05 100644 --- a/src/nmea-parser.c +++ b/src/nmea-parser.c @@ -521,6 +521,9 @@ parse_gga (NMEAParseContext *ctxt, 9) Magnetic Variation, degrees 10) E or W 11) FAA mode indicator (NMEA 2.3 and later, optional) + + Although there are 12 fields, the final one is optional and we don't attempt + to parse it, so RMC_FIELDS is actually set to 11 */ #define RMC_FIELD(x) (ctxt->fields.rmc_fields[x]) static gboolean |