summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2010-04-23 11:10:01 +0100
committerRoss Burton <ross@linux.intel.com>2010-04-23 11:26:48 +0100
commit199828d9dc05116466836d75c444d11bfc8615ab (patch)
treecd783191cd1b4e131b79cc8d717984d6c629a4dc
parentbc2c59cca309b84c82fe295ae22f1829595576f7 (diff)
Support RMC sentences for NMEA < 2.3
Don't require the FAA mode indicator, as we do not use it. http://bugzilla.openedhand.com/show_bug.cgi?id=1857
-rw-r--r--src/nmea-parser.c2
-rw-r--r--src/nmea.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nmea-parser.c b/src/nmea-parser.c
index 195a220..b0687f2 100644
--- a/src/nmea-parser.c
+++ b/src/nmea-parser.c
@@ -516,7 +516,7 @@ parse_gga (NMEAParseContext *ctxt,
8) Date in ddmmyy
9) Magnetic Variation, degrees
10) E or W
- 11) FAA mode indicator (NMEA 2.3 and later)
+ 11) FAA mode indicator (NMEA 2.3 and later, optional)
*/
#define RMC_FIELD(x) (ctxt->fields.rmc_fields[x])
static gboolean
diff --git a/src/nmea.h b/src/nmea.h
index 514aabc..f59d31d 100644
--- a/src/nmea.h
+++ b/src/nmea.h
@@ -13,7 +13,7 @@
#define GSV_FIELDS 19
#define GSA_FIELDS 17
#define GGA_FIELDS 14
-#define RMC_FIELDS 12
+#define RMC_FIELDS 11
typedef enum {
POSITION_NONE = 0,